Class WebSessionServerOAuth2AuthorizedClientRepository

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <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)
      Returns the OAuth2AuthorizedClient associated to the provided client registration identifier and End-User Authentication (Resource Owner) or null if not available.
      reactor.core.publisher.Mono<java.lang.Void> removeAuthorizedClient​(java.lang.String clientRegistrationId, org.springframework.security.core.Authentication principal, org.springframework.web.server.ServerWebExchange exchange)
      Removes the OAuth2AuthorizedClient associated to the provided client registration identifier and End-User Authentication (Resource Owner).
      reactor.core.publisher.Mono<java.lang.Void> saveAuthorizedClient​(OAuth2AuthorizedClient authorizedClient, org.springframework.security.core.Authentication principal, org.springframework.web.server.ServerWebExchange exchange)
      Saves the OAuth2AuthorizedClient associating it to the provided End-User Authentication (Resource Owner).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebSessionServerOAuth2AuthorizedClientRepository

        public WebSessionServerOAuth2AuthorizedClientRepository()
    • 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