Skip to content
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

Support update when saving with JdbcOAuth2AuthorizedClientService #8435

Closed
wants to merge 1 commit into from
Closed

Conversation

stavshamir
Copy link
Contributor

Before this commit, JdbcOAuth2AuthorizedClientService threw DuplicateKeyException when re-authorizing or when authorizing the same user from a different client.

This commit makes JdbcOAuth2AuthorizedClientService's saveAuthorizedClient method consistent with that of InMemoryOAuth2AuthorizedClientService.

Fixes gh-8425.

Before this commit, JdbcOAuth2AuthorizedClientService threw DuplicateKeyException when re-authorizing or when authorizing the same user from a different client.

This commit makes JdbcOAuth2AuthorizedClientService's saveAuthorizedClient method consistent with that of InMemoryOAuth2AuthorizedClientService.

Fixes gh-8425.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 25, 2020
@jgrandja jgrandja added in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) status: duplicate A duplicate of another issue type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 29, 2020
@jgrandja jgrandja added this to the 5.4.0.M1 milestone Apr 29, 2020
@jgrandja
Copy link
Contributor

Thank you for providing this fix @stavshamir ! This is now in master and backported to 5.3.x.

In case you are not aware, we just started a new project Spring Authorization Server. If you are interested and have time, it would be great to see a contribution there as well :)

Thanks again!

@jgrandja jgrandja closed this Apr 29, 2020
@stavshamir
Copy link
Contributor Author

No problem @jgrandja, glad to be able to help and contribute! I'll take a look at the authorization server, thanks for the heads up :)

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: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JdbcOAuth2AuthorizedClientService should support update when saving
4 participants