Class AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository

java.lang.Object
org.springframework.security.oauth2.client.web.server.AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository
All Implemented Interfaces:
ServerOAuth2AuthorizedClientRepository

public final class AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository extends Object implements ServerOAuth2AuthorizedClientRepository
An implementation of an ServerOAuth2AuthorizedClientRepository that delegates to the provided ServerOAuth2AuthorizedClientRepository if the current Principal is authenticated, otherwise, to the default (or provided) ServerOAuth2AuthorizedClientRepository if the current request is unauthenticated (or anonymous). The default ReactiveOAuth2AuthorizedClientRepository is WebSessionServerOAuth2AuthorizedClientRepository.
Since:
5.1
See Also: