Class AuthenticatedPrincipalOAuth2AuthorizedClientRepository

java.lang.Object
org.springframework.security.oauth2.client.web.AuthenticatedPrincipalOAuth2AuthorizedClientRepository
All Implemented Interfaces:
OAuth2AuthorizedClientRepository

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