Skip to content

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

Closed
wants to merge 3 commits into from
Closed

Allow authorization request resolver to be changed for the OAuth2 client configuration #12438

wants to merge 3 commits into from

Conversation

spoptchev
Copy link
Contributor

Fixes gh-12430.

See issue for details.

@pivotal-cla
Copy link

@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.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 19, 2022
@pivotal-cla
Copy link

@spoptchev Thank you for signing the Contributor License Agreement!

Copy link
Contributor

@jgrandja jgrandja left a 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
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add @since 6.1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

@jgrandja jgrandja self-assigned this Dec 20, 2022
@jgrandja jgrandja added type: enhancement A general enhancement in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 20, 2022
@jgrandja jgrandja added this to the 6.1.0-M1 milestone Dec 20, 2022
@spoptchev
Copy link
Contributor Author

@jgrandja I added the test. Let me know if something is missing.

@jgrandja jgrandja added the status: duplicate A duplicate of another issue label Dec 22, 2022
jgrandja added a commit that referenced this pull request Dec 22, 2022
@jgrandja
Copy link
Contributor

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 jgrandja closed this Dec 22, 2022
@spoptchev
Copy link
Contributor Author

@jgrandja thank you for the integration.

Happy holidays 🎄

@spoptchev spoptchev deleted the authorization-resolver-oauth2-client branch December 22, 2022 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow authorization request resolver to be changed for the OAuth2 client configuration
4 participants