Interface ServerOAuth2AuthorizedClientRepository

    • Method Detail

      • loadAuthorizedClient

        <T extends OAuth2AuthorizedClient> reactor.core.publisher.Mono<T> loadAuthorizedClient​(java.lang.String clientRegistrationId,
                                                                                               Authentication principal,
                                                                                               org.springframework.web.server.ServerWebExchange exchange)
        Returns the OAuth2AuthorizedClient associated to the provided client registration identifier and End-User Authentication (Resource Owner) or null if not available.
        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
      • saveAuthorizedClient

        reactor.core.publisher.Mono<java.lang.Void> saveAuthorizedClient​(OAuth2AuthorizedClient authorizedClient,
                                                                         Authentication principal,
                                                                         org.springframework.web.server.ServerWebExchange exchange)
        Saves the OAuth2AuthorizedClient associating it to the provided End-User Authentication (Resource Owner).
        Parameters:
        authorizedClient - the authorized client
        principal - the End-User Authentication (Resource Owner)
        exchange - the ServerWebExchange
      • removeAuthorizedClient

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