クラス RedirectServerAuthenticationSuccessHandler

java.lang.ObjectSE
org.springframework.security.web.server.authentication.RedirectServerAuthenticationSuccessHandler
実装されたすべてのインターフェース:
ServerAuthenticationSuccessHandler

public class RedirectServerAuthenticationSuccessHandler extends ObjectSE implements ServerAuthenticationSuccessHandler
認証成功時にリダイレクトを実行します。デフォルトでは、保存されたリクエストが存在する場合は保存され、それ以外の場合は "/" にリダイレクトされます。
導入:
5.0
  • コンストラクターの詳細

    • RedirectServerAuthenticationSuccessHandler

      public RedirectServerAuthenticationSuccessHandler()
      "/" の場所で新しいインスタンスを作成します
    • RedirectServerAuthenticationSuccessHandler

      public RedirectServerAuthenticationSuccessHandler(StringSE location)
      指定された場所で新しいインスタンスを作成します
      パラメーター:
      location - リクエストが setRequestCache(ServerRequestCache) にキャッシュされていない場合にリダイレクトする場所
  • メソッドの詳細

    • setRequestCache

      public void setRequestCache(ServerRequestCache requestCache)
      リダイレクトに使用される ServerRequestCache を設定します。デフォルトは WebSessionServerRequestCache です。
      パラメーター:
      requestCache - 使用するキャッシュ
    • onAuthenticationSuccess

      public reactor.core.publisher.Mono<VoidSE> onAuthenticationSuccess(WebFilterExchange webFilterExchange, Authentication authentication)
      インターフェースからコピーされた説明: ServerAuthenticationSuccessHandler
      アプリケーションが正常に認証されると呼び出されます
      次で指定:
      インターフェース ServerAuthenticationSuccessHandleronAuthenticationSuccess 
      パラメーター:
      webFilterExchange - 交換
      authentication - Authentication
      戻り値:
      完了通知 (成功またはエラー)
    • setLocation

      public void setLocation(URISE location)
      認証成功時にユーザーがリダイレクトされる場所
      パラメーター:
      location - リダイレクト先の場所。デフォルトは "/" です
    • setRedirectStrategy

      public void setRedirectStrategy(ServerRedirectStrategy redirectStrategy)
      使用する RedirectStrategy。
      パラメーター:
      redirectStrategy - 使用する戦略。デフォルトは DefaultRedirectStrategy です。