クラス UnAuthenticatedServerOAuth2AuthorizedClientRepository

  • 実装されたすべてのインターフェース:
    ServerOAuth2AuthorizedClientRepository

    @Deprecated
    public class UnAuthenticatedServerOAuth2AuthorizedClientRepository
    extends java.lang.Object
    implements ServerOAuth2AuthorizedClientRepository
    使用すべきではありません。
    代わりに AuthorizedClientServiceReactiveOAuth2AuthorizedClientManager を使用してください
    認証されていないユーザーをサポートします。これは、ユーザーが関連付けられていないプロセスとして実行する場合に役立ちます。実装により、ServerWebExchange が null であり、Authentication が null または匿名であることが保証され、誤って使用されることがなくなります。
    導入:
    5.1
    • コンストラクターの詳細

      • UnAuthenticatedServerOAuth2AuthorizedClientRepository

        public UnAuthenticatedServerOAuth2AuthorizedClientRepository()
        使用すべきではありません。
    • メソッドの詳細

      • loadAuthorizedClient

        public <T extends OAuth2AuthorizedClient> reactor.core.publisher.Mono<T> loadAuthorizedClient​(java.lang.String clientRegistrationId,
                                                                                                      Authentication authentication,
                                                                                                      org.springframework.web.server.ServerWebExchange serverWebExchange)
        使用すべきではありません。
        インターフェースからコピーされた説明: ServerOAuth2AuthorizedClientRepository
        指定されたクライアント登録識別子に関連付けられている OAuth2AuthorizedClient と、エンドユーザー Authentication(リソース所有者)または使用できない場合は null を返します。
        次で指定:
        インターフェース ServerOAuth2AuthorizedClientRepositoryloadAuthorizedClient 
        型パラメーター:
        T - OAuth2AuthorizedClient の型
        パラメーター:
        clientRegistrationId - クライアントの登録の識別子
        authentication - エンドユーザー Authentication (リソース所有者)
        serverWebExchange - ServerWebExchange
        戻り値:
        OAuth2AuthorizedClient または null が利用できない場合
      • removeAuthorizedClient

        public reactor.core.publisher.Mono<java.lang.Void> removeAuthorizedClient​(java.lang.String clientRegistrationId,
                                                                                  Authentication authentication,
                                                                                  org.springframework.web.server.ServerWebExchange serverWebExchange)
        使用すべきではありません。
        インターフェースからコピーされた説明: ServerOAuth2AuthorizedClientRepository
        指定されたクライアント登録識別子に関連付けられている OAuth2AuthorizedClient とエンドユーザー Authentication(リソース所有者)を削除します。
        次で指定:
        インターフェース ServerOAuth2AuthorizedClientRepositoryremoveAuthorizedClient 
        パラメーター:
        clientRegistrationId - クライアントの登録の識別子
        authentication - エンドユーザー Authentication (リソース所有者)
        serverWebExchange - ServerWebExchange