keycloak
静的公開メンバ関数 | 全メンバ一覧
org.keycloak.models.utils.AuthenticationFlowResolver クラス
org.keycloak.models.utils.AuthenticationFlowResolver 連携図
Collaboration graph

静的公開メンバ関数

static AuthenticationFlowModel resolveBrowserFlow (AuthenticationSessionModel authSession)
 
static AuthenticationFlowModel resolveDirectGrantFlow (AuthenticationSessionModel authSession)
 

詳解

著者
Bill Burke
バージョン
Revision
1

関数詳解

◆ resolveBrowserFlow()

static AuthenticationFlowModel org.keycloak.models.utils.AuthenticationFlowResolver.resolveBrowserFlow ( AuthenticationSessionModel  authSession)
inlinestatic
31  {
32  AuthenticationFlowModel flow = null;
33  ClientModel client = authSession.getClient();
34  String clientFlow = client.getAuthenticationFlowBindingOverride(AuthenticationFlowBindings.BROWSER_BINDING);
35  if (clientFlow != null) {
36  flow = authSession.getRealm().getAuthenticationFlowById(clientFlow);
37  if (flow == null) {
38  throw new ModelException("Client " + client.getClientId() + " has browser flow override, but this flow does not exist");
39  }
40  return flow;
41  }
42  return authSession.getRealm().getBrowserFlow();
43  }

◆ resolveDirectGrantFlow()

static AuthenticationFlowModel org.keycloak.models.utils.AuthenticationFlowResolver.resolveDirectGrantFlow ( AuthenticationSessionModel  authSession)
inlinestatic
44  {
45  AuthenticationFlowModel flow = null;
46  ClientModel client = authSession.getClient();
47  String clientFlow = client.getAuthenticationFlowBindingOverride(AuthenticationFlowBindings.DIRECT_GRANT_BINDING);
48  if (clientFlow != null) {
49  flow = authSession.getRealm().getAuthenticationFlowById(clientFlow);
50  if (flow == null) {
51  throw new ModelException("Client " + client.getClientId() + " has direct grant flow override, but this flow does not exist");
52  }
53  return flow;
54  }
55  return authSession.getRealm().getDirectGrantFlow();
56  }

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