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

Make saveAuthorizedClient save the authorized client #7551

Closed
wants to merge 1 commit into from
Closed

Make saveAuthorizedClient save the authorized client #7551

wants to merge 1 commit into from

Conversation

philsttr
Copy link
Contributor

Make DefaultReactiveOAuth2AuthorizedClientManager.saveAuthorizedClient actually save the authorized client

Previously, saveAuthorizedClient never actually saved the authorized client, because it ignored the Mono<Void> returned from authorizedClientRepository.saveAuthorizedClient.

Now, it does not ignore the Mono<Void> returned from authorizedClientRepository.saveAuthorizedClient, and includes it in the stream, and therefore it will properly save the authorized client.

Added logic to unit test to verify the Mono<Void> returned from authorizedClientRepository.saveAuthorizedClient is subscribed.

Fixes gh-7546

I have signed the CLA

Previously, saveAuthorizedClient never actually saved the authorized
client, because it ignored the Mono<Void> returned from
authorizedClientRepository.saveAuthorizedClient.

Now, it does not ignore the Mono<Void> returned from
authorizedClientRepository.saveAuthorizedClient, and includes it in
the stream, and therefore it will properly save the authorized client.

Fixes gh-7546
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 20, 2019
@jgrandja jgrandja self-assigned this Oct 23, 2019
@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 Oct 23, 2019
@jgrandja jgrandja added this to the 5.2.1 milestone Oct 23, 2019
@jgrandja
Copy link
Contributor

Thank you for catching that @philsttr and for providing the fix. This is now in master.

@jgrandja jgrandja closed this Oct 23, 2019
@philsttr philsttr deleted the gh-7546-save-authorized-client branch October 23, 2019 19:39
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.

DefaultReactiveOAuth2AuthorizedClientManager.saveAuthorizedClient does not save authorized client
3 participants