クラス OAuth2AuthorizationCodeReactiveAuthenticationManager
- java.lang.Object
-
- org.springframework.security.oauth2.client.authentication.OAuth2AuthorizationCodeReactiveAuthenticationManager
- 実装されたすべてのインターフェース:
ReactiveAuthenticationManager
public class OAuth2AuthorizationCodeReactiveAuthenticationManager extends java.lang.Object implements ReactiveAuthenticationManager
OAuth 2.0 認証コード付与フローを活用する OAuth 2.0 ログイン用のAuthenticationProvider
の実装。このAuthenticationProvider
は、認証サーバーのトークンエンドポイントを使用して認証コードのクレデンシャルを認証し、有効な場合はアクセストークンのクレデンシャルと交換するロールを果たします。また、
OAuth2UserService
を使用して UserInfo エンドポイントからエンドユーザー(リソース所有者)のユーザー属性を取得し、OAuth2User
の形式でPrincipal
を作成します。次に、OAuth2User
がOAuth2LoginAuthenticationToken
に関連付けられ、認証が完了します。
コンストラクターのサマリー
コンストラクター コンストラクター 説明 OAuth2AuthorizationCodeReactiveAuthenticationManager(ReactiveOAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient)
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 reactor.core.publisher.Mono<Authentication>
authenticate(Authentication authentication)
提供されたAuthentication
を認証しようとします
コンストラクターの詳細
OAuth2AuthorizationCodeReactiveAuthenticationManager
public OAuth2AuthorizationCodeReactiveAuthenticationManager(ReactiveOAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient)
メソッドの詳細
authenticate
public reactor.core.publisher.Mono<Authentication> authenticate(Authentication authentication)
インターフェースからコピーされた説明:ReactiveAuthenticationManager
提供されたAuthentication
を認証しようとします- 次で指定:
- インターフェース
ReactiveAuthenticationManager
のauthenticate
- パラメーター:
authentication
- テストするAuthentication
- 戻り値:
- 認証が成功すると、
Authentication
が返されます。認証を判別できない場合、空の Mono が返されます。認証が失敗すると、Mono エラーが返されます。