Skip to content

Support customizing headers of a request in AbstractWebClientReactiveOAuth2AccessTokenResponseClient #10130

@sjohnr

Description

@sjohnr

Expected Behavior

Headers added to the request via .headers((headers) -> populateTokenRequestHeaders(grantRequest, headers)) of the WebClient should be customizable so the application can add additional headers or customize the default set of headers provided by AbstractWebClientReactiveOAuth2AccessTokenResponseClient.

Current Behavior

Currently, the request can only be customized by providing a custom WebClient and registering an ExchangeFilterFunction. This limits the application to only the current ClientRequest, possibly requiring parsing and mutating the request after it has already been built, with the inability to access the current AbstractOAuth2AuthorizationGrantRequest.

Context

See gh-10042

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)status: ideal-for-contributionAn issue that we actively are looking for someone to help us withtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions