クラス OidcClientInitiatedLogoutSuccessHandler
java.lang.ObjectSE
org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler
org.springframework.security.oauth2.client.oidc.web.logout.OidcClientInitiatedLogoutSuccessHandler
- 実装されたすべてのインターフェース:
LogoutSuccessHandler
ユーザーエージェントを介して OIDC ログアウトを開始するためのログアウト成功ハンドラー。
- 導入:
- 5.2
- 関連事項:
フィールドサマリー
クラス org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler から継承されたフィールド
logger
コンストラクターのサマリー
コンストラクター説明OidcClientInitiatedLogoutSuccessHandler
(ClientRegistrationRepository clientRegistrationRepository) メソッドのサマリー
修飾子と型メソッド説明protected StringSE
determineTargetUrl
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) メインクラス Javadoc で定義されたロジックに従ってターゲット URL を構築しますvoid
setPostLogoutRedirectUri
(StringSE postLogoutRedirectUri) ログアウト後のリダイレクト URI テンプレートを設定します。クラス org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler から継承されたメソッド
onLogoutSuccess
クラス org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler から継承されたメソッド
determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
コンストラクターの詳細
OidcClientInitiatedLogoutSuccessHandler
public OidcClientInitiatedLogoutSuccessHandler(ClientRegistrationRepository clientRegistrationRepository)
メソッドの詳細
determineTargetUrl
protected StringSE determineTargetUrl(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) クラスからコピーされた説明:AbstractAuthenticationTargetUrlRequestHandler
メインクラス Javadoc で定義されたロジックに従ってターゲット URL を構築します- オーバーライド:
- クラス
AbstractAuthenticationTargetUrlRequestHandler
のdetermineTargetUrl
setPostLogoutRedirectUri
ログアウト後のリダイレクト URI テンプレートを設定します。
サポートされている uri テンプレート変数は次のとおりです:{baseScheme}
、{baseHost}
、{basePort}
、{basePath}
。
注 :"{baseUrl}"
もサポートされています。これは"{baseScheme}://{baseHost}{basePort}{basePath}"
と同じですhandler.setPostLogoutRedirectUri("{baseUrl}");
post_logout_redirect_uri
がクライアントアプリケーションのベース URL に設定されるようにします。- パラメーター:
postLogoutRedirectUri
- -post_logout_redirect_uri
クエリパラメーターを作成するためのテンプレート- 導入:
- 5.3