mitreid-connect
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.mitre.openid.connect.client.OIDCAuthenticationFilter.TargetLinkURIAuthenticationSuccessHandler クラス
org.mitre.openid.connect.client.OIDCAuthenticationFilter.TargetLinkURIAuthenticationSuccessHandler の継承関係図
Inheritance graph
org.mitre.openid.connect.client.OIDCAuthenticationFilter.TargetLinkURIAuthenticationSuccessHandler 連携図
Collaboration graph

公開メンバ関数

void onAuthenticationSuccess (HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException
 

非公開変数類

AuthenticationSuccessHandler passthrough
 

詳解

Handle a successful authentication event. If the issuer service sets a target URL, we'll go to that. Otherwise we'll let the superclass handle it for us with the configured behavior.

関数詳解

◆ onAuthenticationSuccess()

void org.mitre.openid.connect.client.OIDCAuthenticationFilter.TargetLinkURIAuthenticationSuccessHandler.onAuthenticationSuccess ( HttpServletRequest  request,
HttpServletResponse  response,
Authentication  authentication 
) throws IOException, ServletException
inline
755  {
756 
757  HttpSession session = request.getSession();
758 
759  // check to see if we've got a target
760  String target = getStoredSessionString(session, TARGET_SESSION_VARIABLE);
761 
762  if (!Strings.isNullOrEmpty(target)) {
763  session.removeAttribute(TARGET_SESSION_VARIABLE);
764 
765  if (deepLinkFilter != null) {
766  target = deepLinkFilter.filter(target);
767  }
768 
769  response.sendRedirect(target);
770  } else {
771  // if the target was blank, use the default behavior here
772  passthrough.onAuthenticationSuccess(request, response, authentication);
773  }
774 
775  }
static final String TARGET_SESSION_VARIABLE
Definition: OIDCAuthenticationFilter.java:103
TargetLinkURIChecker deepLinkFilter
Definition: OIDCAuthenticationFilter.java:142
static String getStoredSessionString(HttpSession session, String key)
Definition: OIDCAuthenticationFilter.java:662
AuthenticationSuccessHandler passthrough
Definition: OIDCAuthenticationFilter.java:750

メンバ詳解

◆ passthrough

AuthenticationSuccessHandler org.mitre.openid.connect.client.OIDCAuthenticationFilter.TargetLinkURIAuthenticationSuccessHandler.passthrough
private

このクラス詳解は次のファイルから抽出されました: