keycloak-service
公開メンバ関数 | 静的限定公開変数類 | 非公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.keycloak.services.util.AuthenticationFlowURLHelper クラス
org.keycloak.services.util.AuthenticationFlowURLHelper 連携図
Collaboration graph

公開メンバ関数

 AuthenticationFlowURLHelper (KeycloakSession session, RealmModel realm, UriInfo uriInfo)
 
Response showPageExpired (AuthenticationSessionModel authSession)
 
URI getLastExecutionUrl (String flowPath, String executionId, String clientId, String tabId)
 
URI getLastExecutionUrl (AuthenticationSessionModel authSession)
 

静的限定公開変数類

static final Logger logger = Logger.getLogger(AuthenticationFlowURLHelper.class)
 

非公開メンバ関数

String getExecutionId (AuthenticationSessionModel authSession)
 

非公開変数類

final KeycloakSession session
 
final RealmModel realm
 
final UriInfo uriInfo
 

詳解

著者
Marek Posolda

構築子と解体子

◆ AuthenticationFlowURLHelper()

org.keycloak.services.util.AuthenticationFlowURLHelper.AuthenticationFlowURLHelper ( KeycloakSession  session,
RealmModel  realm,
UriInfo  uriInfo 
)
inline
47  {
48  this.session = session;
49  this.realm = realm;
50  this.uriInfo = uriInfo;
51  }
final RealmModel realm
Definition: AuthenticationFlowURLHelper.java:44
final KeycloakSession session
Definition: AuthenticationFlowURLHelper.java:43
final UriInfo uriInfo
Definition: AuthenticationFlowURLHelper.java:45

関数詳解

◆ getExecutionId()

String org.keycloak.services.util.AuthenticationFlowURLHelper.getExecutionId ( AuthenticationSessionModel  authSession)
inlineprivate
95  {
96  return authSession.getAuthNote(AuthenticationProcessor.CURRENT_AUTHENTICATION_EXECUTION);
97  }

◆ getLastExecutionUrl() [1/2]

URI org.keycloak.services.util.AuthenticationFlowURLHelper.getLastExecutionUrl ( String  flowPath,
String  executionId,
String  clientId,
String  tabId 
)
inline
66  {
67  UriBuilder uriBuilder = LoginActionsService.loginActionsBaseUrl(uriInfo)
68  .path(flowPath);
69 
70  if (executionId != null) {
71  uriBuilder.queryParam(Constants.EXECUTION, executionId);
72  }
73  uriBuilder.queryParam(Constants.CLIENT_ID, clientId);
74  uriBuilder.queryParam(Constants.TAB_ID, tabId);
75 
76  return uriBuilder.build(realm.getName());
77  }
final RealmModel realm
Definition: AuthenticationFlowURLHelper.java:44
final UriInfo uriInfo
Definition: AuthenticationFlowURLHelper.java:45

◆ getLastExecutionUrl() [2/2]

URI org.keycloak.services.util.AuthenticationFlowURLHelper.getLastExecutionUrl ( AuthenticationSessionModel  authSession)
inline
80  {
81  String executionId = getExecutionId(authSession);
82  String latestFlowPath = authSession.getAuthNote(AuthenticationProcessor.CURRENT_FLOW_PATH);
83 
84  if (latestFlowPath == null) {
85  latestFlowPath = authSession.getClientNote(AuthorizationEndpointBase.APP_INITIATED_FLOW);
86  }
87 
88  if (latestFlowPath == null) {
89  latestFlowPath = LoginActionsService.AUTHENTICATE_PATH;
90  }
91 
92  return getLastExecutionUrl(latestFlowPath, executionId, authSession.getClient().getClientId(), authSession.getTabId());
93  }
URI getLastExecutionUrl(String flowPath, String executionId, String clientId, String tabId)
Definition: AuthenticationFlowURLHelper.java:66
String getExecutionId(AuthenticationSessionModel authSession)
Definition: AuthenticationFlowURLHelper.java:95

◆ showPageExpired()

Response org.keycloak.services.util.AuthenticationFlowURLHelper.showPageExpired ( AuthenticationSessionModel  authSession)
inline
54  {
55  URI lastStepUrl = getLastExecutionUrl(authSession);
56 
57  logger.debugf("Redirecting to 'page expired' now. Will use last step URL: %s", lastStepUrl);
58 
59  return session.getProvider(LoginFormsProvider.class).setAuthenticationSession(authSession)
60  .setActionUri(lastStepUrl)
61  .setExecution(getExecutionId(authSession))
62  .createLoginExpiredPage();
63  }
URI getLastExecutionUrl(String flowPath, String executionId, String clientId, String tabId)
Definition: AuthenticationFlowURLHelper.java:66
String getExecutionId(AuthenticationSessionModel authSession)
Definition: AuthenticationFlowURLHelper.java:95
final KeycloakSession session
Definition: AuthenticationFlowURLHelper.java:43
static final Logger logger
Definition: AuthenticationFlowURLHelper.java:41

メンバ詳解

◆ logger

final Logger org.keycloak.services.util.AuthenticationFlowURLHelper.logger = Logger.getLogger(AuthenticationFlowURLHelper.class)
staticprotected

◆ realm

final RealmModel org.keycloak.services.util.AuthenticationFlowURLHelper.realm
private

◆ session

final KeycloakSession org.keycloak.services.util.AuthenticationFlowURLHelper.session
private

◆ uriInfo

final UriInfo org.keycloak.services.util.AuthenticationFlowURLHelper.uriInfo
private

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