DefaultReactiveOAuth2AuthorizedClientManager.saveAuthorizedClient does not save authorized client #7546
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: bug
A general bug
Milestone
Summary
DefaultReactiveOAuth2AuthorizedClientManager.saveAuthorizedClient
never actually saves the authorized client, because it ignores theMono<Void>
returned fromauthorizedClientRepository.saveAuthorizedClient
Actual Behavior
DefaultReactiveOAuth2AuthorizedClientManager.saveAuthorizedClient
does not save the authorized client.spring-security/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/DefaultReactiveOAuth2AuthorizedClientManager.java
Lines 108 to 111 in 6ad328f
this.authorizedClientRepository.saveAuthorizedClient
returns aMono<Void>
, which is ignored, and never included in the stream, and therefore never subscribed.Expected Behavior
DefaultReactiveOAuth2AuthorizedClientManager.saveAuthorizedClient
saves the authorized client.Perhaps:
Configuration
n/a
Version
Spring Boot 2.2.0.RELEASE
Spring Security 5.2.0.RELEASE
Sample
n/a
The text was updated successfully, but these errors were encountered: