Support customizing headers of a request in AbstractWebClientReactiveOAuth2AccessTokenResponseClient #10130
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: ideal-for-contribution
An issue that we actively are looking for someone to help us with
type: enhancement
A general enhancement
Milestone
Expected Behavior
Headers added to the request via
.headers((headers) -> populateTokenRequestHeaders(grantRequest, headers))
of theWebClient
should be customizable so the application can add additional headers or customize the default set of headers provided byAbstractWebClientReactiveOAuth2AccessTokenResponseClient
.Current Behavior
Currently, the request can only be customized by providing a custom
WebClient
and registering anExchangeFilterFunction
. This limits the application to only the currentClientRequest
, possibly requiring parsing and mutating the request after it has already been built, with the inability to access the currentAbstractOAuth2AuthorizationGrantRequest
.Context
See gh-10042
The text was updated successfully, but these errors were encountered: