クラス AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository
java.lang.ObjectSE
org.springframework.security.oauth2.client.web.server.AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository
- 実装されたすべてのインターフェース:
ServerOAuth2AuthorizedClientRepository
public final class AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository
extends ObjectSE
implements ServerOAuth2AuthorizedClientRepository
現在の
Principal
が認証されている場合は提供された ServerOAuth2AuthorizedClientRepository
に委譲する ServerOAuth2AuthorizedClientRepository
の実装。それ以外の場合は、現在のリクエストが認証されていない(または匿名)場合はデフォルト(または提供されている)ServerOAuth2AuthorizedClientRepository
に委譲します。デフォルトの ReactiveOAuth2AuthorizedClientRepository
は WebSessionServerOAuth2AuthorizedClientRepository
です。コンストラクターのサマリー
コンストラクターコンストラクター説明AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository
(ReactiveOAuth2AuthorizedClientService authorizedClientService) インスタンスを作成しますメソッドのサマリー
修飾子と型メソッド説明<T extends OAuth2AuthorizedClient>
reactor.core.publisher.Mono<T>loadAuthorizedClient
(StringSE clientRegistrationId, Authentication principal, org.springframework.web.server.ServerWebExchange exchange) 指定されたクライアント登録識別子に関連付けられているOAuth2AuthorizedClient
と、エンドユーザーAuthentication
(リソース所有者)または使用できない場合はnull
を返します。reactor.core.publisher.Mono<VoidSE>
removeAuthorizedClient
(StringSE clientRegistrationId, Authentication principal, org.springframework.web.server.ServerWebExchange exchange) 指定されたクライアント登録識別子に関連付けられているOAuth2AuthorizedClient
とエンドユーザーAuthentication
(リソース所有者)を削除します。reactor.core.publisher.Mono<VoidSE>
saveAuthorizedClient
(OAuth2AuthorizedClient authorizedClient, Authentication principal, org.springframework.web.server.ServerWebExchange exchange) 指定されたエンドユーザーAuthentication
(リソース所有者)に関連付けてOAuth2AuthorizedClient
を保存します。void
setAnonymousAuthorizedClientRepository
(ServerOAuth2AuthorizedClientRepository anonymousAuthorizedClientRepository) 認証されていない(または匿名の)リクエストに使用されるServerOAuth2AuthorizedClientRepository
を設定します。
コンストラクターの詳細
AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository
public AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository(ReactiveOAuth2AuthorizedClientService authorizedClientService) インスタンスを作成します- パラメーター:
authorizedClientService
- 認可されたクライアントサービス
メソッドの詳細
setAnonymousAuthorizedClientRepository
public void setAnonymousAuthorizedClientRepository(ServerOAuth2AuthorizedClientRepository anonymousAuthorizedClientRepository) 認証されていない(または匿名の)リクエストに使用されるServerOAuth2AuthorizedClientRepository
を設定します。デフォルトはWebSessionServerOAuth2AuthorizedClientRepository
です。- パラメーター:
anonymousAuthorizedClientRepository
- 認証されていないリクエストに使用されるリポジトリ (または匿名)
loadAuthorizedClient
public <T extends OAuth2AuthorizedClient> reactor.core.publisher.Mono<T> loadAuthorizedClient(StringSE clientRegistrationId, Authentication principal, org.springframework.web.server.ServerWebExchange exchange) インターフェースからコピーされた説明:ServerOAuth2AuthorizedClientRepository
指定されたクライアント登録識別子に関連付けられているOAuth2AuthorizedClient
と、エンドユーザーAuthentication
(リソース所有者)または使用できない場合はnull
を返します。- 次で指定:
- インターフェース
ServerOAuth2AuthorizedClientRepository
のloadAuthorizedClient
- 型パラメーター:
T
- OAuth2AuthorizedClient の型- パラメーター:
clientRegistrationId
- クライアントの登録の識別子principal
- エンドユーザーAuthentication
(リソース所有者)exchange
-ServerWebExchange
- 戻り値:
OAuth2AuthorizedClient
またはnull
が利用できない場合
saveAuthorizedClient
public reactor.core.publisher.Mono<VoidSE> saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication principal, org.springframework.web.server.ServerWebExchange exchange) インターフェースからコピーされた説明:ServerOAuth2AuthorizedClientRepository
指定されたエンドユーザーAuthentication
(リソース所有者)に関連付けてOAuth2AuthorizedClient
を保存します。- 次で指定:
- インターフェース
ServerOAuth2AuthorizedClientRepository
のsaveAuthorizedClient
- パラメーター:
authorizedClient
- 認可されたクライアントprincipal
- エンドユーザーAuthentication
(リソース所有者)exchange
-ServerWebExchange
removeAuthorizedClient
public reactor.core.publisher.Mono<VoidSE> removeAuthorizedClient(StringSE clientRegistrationId, Authentication principal, org.springframework.web.server.ServerWebExchange exchange) インターフェースからコピーされた説明:ServerOAuth2AuthorizedClientRepository
指定されたクライアント登録識別子に関連付けられているOAuth2AuthorizedClient
とエンドユーザーAuthentication
(リソース所有者)を削除します。- 次で指定:
- インターフェース
ServerOAuth2AuthorizedClientRepository
のremoveAuthorizedClient
- パラメーター:
clientRegistrationId
- クライアントの登録の識別子principal
- エンドユーザーAuthentication
(リソース所有者)exchange
-ServerWebExchange