インターフェース ServerOAuth2AuthorizedClientRepository

すべての既知の実装クラス:
AuthenticatedPrincipalServerOAuth2AuthorizedClientRepositoryWebSessionServerOAuth2AuthorizedClientRepository

public interface ServerOAuth2AuthorizedClientRepository
このインターフェースの実装は、リクエスト間の Authorized Client(s) の永続化に責任があります。

Authorized Client の主な目的は、Access Token クレデンシャルを Client およびリソース所有者に関連付けることです。これは、最初に認可を付与した Principal です。

導入:
5.1
関連事項:
  • メソッドの詳細

    • loadAuthorizedClient

      <T extends OAuth2AuthorizedClient> reactor.core.publisher.Mono<T> loadAuthorizedClient(StringSE clientRegistrationId, Authentication principal, org.springframework.web.server.ServerWebExchange exchange)
      指定されたクライアント登録識別子に関連付けられている OAuth2AuthorizedClient と、エンドユーザー Authentication(リソース所有者)または使用できない場合は null を返します。
      型パラメーター:
      T - OAuth2AuthorizedClient の型
      パラメーター:
      clientRegistrationId - クライアントの登録の識別子
      principal - エンドユーザー Authentication (リソース所有者)
      exchange - ServerWebExchange
      戻り値:
      OAuth2AuthorizedClient または null が利用できない場合
    • saveAuthorizedClient

      reactor.core.publisher.Mono<VoidSE> saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication principal, org.springframework.web.server.ServerWebExchange exchange)
      指定されたエンドユーザー Authentication(リソース所有者)に関連付けて OAuth2AuthorizedClient を保存します。
      パラメーター:
      authorizedClient - 認可されたクライアント
      principal - エンドユーザー Authentication (リソース所有者)
      exchange - ServerWebExchange
    • removeAuthorizedClient

      reactor.core.publisher.Mono<VoidSE> removeAuthorizedClient(StringSE clientRegistrationId, Authentication principal, org.springframework.web.server.ServerWebExchange exchange)
      指定されたクライアント登録識別子に関連付けられている OAuth2AuthorizedClient とエンドユーザー Authentication(リソース所有者)を削除します。
      パラメーター:
      clientRegistrationId - クライアントの登録の識別子
      principal - エンドユーザー Authentication (リソース所有者)
      exchange - ServerWebExchange