Skip to content

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