-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable customization of headers in AbstractWebClientReactiveOAuth2AccessTokenResponseClient #10131
enable customization of headers in AbstractWebClientReactiveOAuth2AccessTokenResponseClient #10131
Conversation
@vboulaye Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
Hi @vboulaye! See this comment for a starting point. Let me know if you have any more questions. |
@vboulaye Thank you for signing the Contributor License Agreement! |
Hi, I added the header converter + some unit tests for each of the AbstractWebClientReactiveOAuth2AccessTokenResponseClient variants. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @vboulaye, my apologies for the delay. Thanks for the updates. I have a few more suggestions below.
Update
Also, please review contributing guidelines, specifically make sure to run checks and address style issues, squash your commits, and ensure your commit message directly addresses the improvement from the original issue. Finally, add "Closes gh-10130" on a separate line in the message.
...urity/oauth2/client/endpoint/WebClientReactiveAuthorizationCodeTokenResponseClientTests.java
Outdated
Show resolved
Hide resolved
...urity/oauth2/client/endpoint/WebClientReactiveAuthorizationCodeTokenResponseClientTests.java
Outdated
Show resolved
Hide resolved
...ecurity/oauth2/client/endpoint/AbstractWebClientReactiveOAuth2AccessTokenResponseClient.java
Outdated
Show resolved
Hide resolved
...urity/oauth2/client/endpoint/WebClientReactiveAuthorizationCodeTokenResponseClientTests.java
Show resolved
Hide resolved
...urity/oauth2/client/endpoint/WebClientReactiveAuthorizationCodeTokenResponseClientTests.java
Outdated
Show resolved
Hide resolved
e1ad878
to
9703229
Compare
…essTokenResponseClient adds the possibility to customize the headers of the access token request, similarly to what is done in the AbstractOAuth2AuthorizationGrantRequestEntityConverter Closes spring-projectsgh-10130
9703229
to
47cb4eb
Compare
Hi, |
Thanks @vboulaye! This is now in main. |
Hi,
This is an attempt at fixing #10130
I tried adding an headers consumer into the
AbstractWebClientReactiveOAuth2AccessTokenResponseClient
to customize the headers after they are set bypopulateTokenRequestHeaders(grantRequest, headers)
Is this the proper way to do it ?