クラス RedirectServerAuthenticationSuccessHandler
java.lang.ObjectSE
org.springframework.security.web.server.authentication.RedirectServerAuthenticationSuccessHandler
- 実装されたすべてのインターフェース:
ServerAuthenticationSuccessHandler
public class RedirectServerAuthenticationSuccessHandler
extends ObjectSE
implements ServerAuthenticationSuccessHandler
認証成功時にリダイレクトを実行します。デフォルトでは、保存されたリクエストが存在する場合は保存され、それ以外の場合は "/" にリダイレクトされます。
- 導入:
- 5.0
コンストラクターのサマリー
コンストラクターコンストラクター説明"/" の場所で新しいインスタンスを作成します指定された場所で新しいインスタンスを作成しますメソッドのサマリー
修飾子と型メソッド説明reactor.core.publisher.Mono<VoidSE>
onAuthenticationSuccess
(WebFilterExchange webFilterExchange, Authentication authentication) アプリケーションが正常に認証されると呼び出されますvoid
setLocation
(URISE location) 認証成功時にユーザーがリダイレクトされる場所void
setRedirectStrategy
(ServerRedirectStrategy redirectStrategy) 使用する RedirectStrategy。void
setRequestCache
(ServerRequestCache requestCache) リダイレクトに使用されるServerRequestCache
を設定します。
コンストラクターの詳細
RedirectServerAuthenticationSuccessHandler
public RedirectServerAuthenticationSuccessHandler()"/" の場所で新しいインスタンスを作成しますRedirectServerAuthenticationSuccessHandler
指定された場所で新しいインスタンスを作成します- パラメーター:
location
- リクエストがsetRequestCache(ServerRequestCache)
にキャッシュされていない場合にリダイレクトする場所
メソッドの詳細
setRequestCache
リダイレクトに使用されるServerRequestCache
を設定します。デフォルトはWebSessionServerRequestCache
です。- パラメーター:
requestCache
- 使用するキャッシュ
onAuthenticationSuccess
public reactor.core.publisher.Mono<VoidSE> onAuthenticationSuccess(WebFilterExchange webFilterExchange, Authentication authentication) インターフェースからコピーされた説明:ServerAuthenticationSuccessHandler
アプリケーションが正常に認証されると呼び出されます- 次で指定:
- インターフェース
ServerAuthenticationSuccessHandler
のonAuthenticationSuccess
- パラメーター:
webFilterExchange
- 交換authentication
-Authentication
- 戻り値:
- 完了通知 (成功またはエラー)
setLocation
認証成功時にユーザーがリダイレクトされる場所- パラメーター:
location
- リダイレクト先の場所。デフォルトは "/" です
setRedirectStrategy
使用する RedirectStrategy。- パラメーター:
redirectStrategy
- 使用する戦略。デフォルトは DefaultRedirectStrategy です。