We should consider adding a new attribute ClientRegistration.providerDetails.issuerUri, which would be used for OpenID Connect Discovery 1.0 or OAuth 2.0 Authorization Server Metadata.

Related #8321 see comment

Comment From: ThomasVitale

Hi @jgrandja, can I take this task?

Comment From: jgrandja

That would be great @ThomasVitale ! Please go ahead.

Comment From: ThomasVitale

Thanks @jgrandja, I'll start working on it then.

Comment From: ThomasVitale

@jgrandja Besides adding the attribute and making it settable from the builder, which use cases should I support (and test)?

Comment From: jgrandja

@ThomasVitale CommonOAuth2Provider will need to have a default issuerUri set for GOOGLE and OidcIdTokenValidator will need to get updated similar to this recent update 32ce94d

Comment From: ThomasVitale

@jgrandja Thanks, I'll submit a PR for an early review in a couple of days.

Comment From: ThomasVitale

@jgrandja I submitted a PR here: https://github.com/spring-projects/spring-security/pull/8501