Skip to content

Consider adding ClientRegistrationIdResolver to ExchangeFilterFunctions #15825

Open
@sjohnr

Description

@sjohnr

We should align (Server|Servlet)OAuth2AuthorizedClientExchangeFilterFunction with OAuth2ClientHttpRequestInterceptor which introduces a ClientRegistrationIdResolver as a flexible strategy for resolving the clientRegistrationId for a given request. For WebClient-based ExchangeFilterFunctions, the interface could be:

@FunctionalInterface
public interface ClientRegistrationIdResolver {

	@Nullable
	String resolve(ClientRequest request);

}

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions