クラス UnAuthenticatedServerOAuth2AuthorizedClientRepository
- java.lang.Object
-
- org.springframework.security.oauth2.client.web.server.UnAuthenticatedServerOAuth2AuthorizedClientRepository
- 実装されたすべてのインターフェース:
ServerOAuth2AuthorizedClientRepository
@Deprecated public class UnAuthenticatedServerOAuth2AuthorizedClientRepository extends java.lang.Object implements ServerOAuth2AuthorizedClientRepository
使用すべきではありません。代わりにAuthorizedClientServiceReactiveOAuth2AuthorizedClientManager
を使用してください認証されていないユーザーをサポートします。これは、ユーザーが関連付けられていないプロセスとして実行する場合に役立ちます。実装により、ServerWebExchange
が null であり、Authentication
が null または匿名であることが保証され、誤って使用されることがなくなります。- 導入:
- 5.1
コンストラクターのサマリー
コンストラクター コンストラクター 説明 UnAuthenticatedServerOAuth2AuthorizedClientRepository()
使用すべきではありません。
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 非推奨のメソッド 修飾子と型 メソッド 説明 <T extends OAuth2AuthorizedClient>
reactor.core.publisher.Mono<T>loadAuthorizedClient(java.lang.String clientRegistrationId, Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)
使用すべきではありません。指定されたクライアント登録識別子に関連付けられているOAuth2AuthorizedClient
と、エンドユーザーAuthentication
(リソース所有者)または使用できない場合はnull
を返します。reactor.core.publisher.Mono<java.lang.Void>
removeAuthorizedClient(java.lang.String clientRegistrationId, Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)
使用すべきではありません。指定されたクライアント登録識別子に関連付けられているOAuth2AuthorizedClient
とエンドユーザーAuthentication
(リソース所有者)を削除します。reactor.core.publisher.Mono<java.lang.Void>
saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)
使用すべきではありません。指定されたエンドユーザーAuthentication
(リソース所有者)に関連付けてOAuth2AuthorizedClient
を保存します。
メソッドの詳細
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
を返します。- 次で指定:
- インターフェース
ServerOAuth2AuthorizedClientRepository
のloadAuthorizedClient
- 型パラメーター:
T
- OAuth2AuthorizedClient の型- パラメーター:
clientRegistrationId
- クライアントの登録の識別子authentication
- エンドユーザーAuthentication
(リソース所有者)serverWebExchange
-ServerWebExchange
- 戻り値:
OAuth2AuthorizedClient
またはnull
が利用できない場合
saveAuthorizedClient
public reactor.core.publisher.Mono<java.lang.Void> saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)
使用すべきではありません。インターフェースからコピーされた説明:ServerOAuth2AuthorizedClientRepository
指定されたエンドユーザーAuthentication
(リソース所有者)に関連付けてOAuth2AuthorizedClient
を保存します。- 次で指定:
- インターフェース
ServerOAuth2AuthorizedClientRepository
のsaveAuthorizedClient
- パラメーター:
authorizedClient
- 認可されたクライアントauthentication
- エンドユーザーAuthentication
(リソース所有者)serverWebExchange
-ServerWebExchange
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
(リソース所有者)を削除します。- 次で指定:
- インターフェース
ServerOAuth2AuthorizedClientRepository
のremoveAuthorizedClient
- パラメーター:
clientRegistrationId
- クライアントの登録の識別子authentication
- エンドユーザーAuthentication
(リソース所有者)serverWebExchange
-ServerWebExchange