Consider adding PrincipalResolver
to ExchangeFilterFunctions
#16284
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Milestone
We should align
(Server|Servlet)OAuth2AuthorizedClientExchangeFilterFunction
withOAuth2ClientHttpRequestInterceptor
which introduces aPrincipalResolver
as a flexible strategy for resolving theAuthentication
for a given request.For
ServletOAuth2AuthorizedClientExchangeFilterFunction
, the interface could be:For
ServerOAuth2AuthorizedClientExchangeFilterFunction
, it may need to return aMono<Authentication>
to accommodateReactiveSecurityContextHolder
:The text was updated successfully, but these errors were encountered: