-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Allow authorization request resolver to be changed for the OAuth2 client configuration #12438
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
Allow authorization request resolver to be changed for the OAuth2 client configuration #12438
Conversation
…ient configuration
@spoptchev Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@spoptchev Thank you for signing the Contributor License Agreement! |
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.
Thanks for the PR @spoptchev !
Can you also please add a test similar to OAuth2LoginTests.oauth2LoginWhenCustomObjectsThenUsed()
. We should test if a custom authorizationRequestResolver
is set then it is used. I think all you need to modify is OAuth2ClientSpecTests.oauth2ClientWhenCustomObjectsThenUsed()
.
* @param authorizationRequestResolver the resolver used for resolving | ||
* {@link OAuth2AuthorizationRequest}'s | ||
* @return the {@link OAuth2ClientSpec} for further configuration | ||
*/ |
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.
Add @since 6.1
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.
Done 👍
@jgrandja I added the test. Let me know if something is missing. |
Thanks for the updates @spoptchev. This is now merged. FYI, I added a polish commit with some minor updates in order to get this merged as I am off until the new year. Enjoy the holidays! |
@jgrandja thank you for the integration. Happy holidays 🎄 |
Fixes gh-12430.
See issue for details.