Class AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository

    • Constructor Detail

      • AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository

        public AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository​(ReactiveOAuth2AuthorizedClientService authorizedClientService)
        Creates an instance
        Parameters:
        authorizedClientService - the authorized client service
    • Method Detail

      • loadAuthorizedClient

        public <T extends OAuth2AuthorizedClient> reactor.core.publisher.Mono<T> loadAuthorizedClient​(java.lang.String clientRegistrationId,
                                                                                                      org.springframework.security.core.Authentication principal,
                                                                                                      org.springframework.web.server.ServerWebExchange exchange)
        Description copied from interface: ServerOAuth2AuthorizedClientRepository
        Returns the OAuth2AuthorizedClient associated to the provided client registration identifier and End-User Authentication (Resource Owner) or null if not available.
        Specified by:
        loadAuthorizedClient in interface ServerOAuth2AuthorizedClientRepository
        Type Parameters:
        T - a type of OAuth2AuthorizedClient
        Parameters:
        clientRegistrationId - the identifier for the client's registration
        principal - the End-User Authentication (Resource Owner)
        exchange - the ServerWebExchange
        Returns:
        the OAuth2AuthorizedClient or null if not available
      • removeAuthorizedClient

        public reactor.core.publisher.Mono<java.lang.Void> removeAuthorizedClient​(java.lang.String clientRegistrationId,
                                                                                  org.springframework.security.core.Authentication principal,
                                                                                  org.springframework.web.server.ServerWebExchange exchange)
        Description copied from interface: ServerOAuth2AuthorizedClientRepository
        Removes the OAuth2AuthorizedClient associated to the provided client registration identifier and End-User Authentication (Resource Owner).
        Specified by:
        removeAuthorizedClient in interface ServerOAuth2AuthorizedClientRepository
        Parameters:
        clientRegistrationId - the identifier for the client's registration
        principal - the End-User Authentication (Resource Owner)
        exchange - the ServerWebExchange