|
static final Logger | LOGGER = Logger.getLogger(ScriptBasedAuthenticatorFactory.class) |
|
◆ close()
void org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.close |
( |
| ) |
|
|
inline |
◆ create()
Authenticator org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.create |
( |
KeycloakSession |
session | ) |
|
|
inline |
static final ScriptBasedAuthenticator SINGLETON
Definition: ScriptBasedAuthenticatorFactory.java:57
◆ getConfigProperties()
List<ProviderConfigProperty> org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.getConfigProperties |
( |
| ) |
|
|
inline |
124 ProviderConfigProperty name =
new ProviderConfigProperty();
125 name.setType(STRING_TYPE);
126 name.setName(SCRIPT_NAME);
127 name.setLabel(
"Script Name");
128 name.setHelpText(
"The name of the script used to authenticate.");
130 ProviderConfigProperty description =
new ProviderConfigProperty();
131 description.setType(STRING_TYPE);
132 description.setName(SCRIPT_DESCRIPTION);
133 description.setLabel(
"Script Description");
134 description.setHelpText(
"The description of the script used to authenticate.");
136 ProviderConfigProperty script =
new ProviderConfigProperty();
137 script.setType(SCRIPT_TYPE);
138 script.setName(SCRIPT_CODE);
139 script.setLabel(
"Script Source");
141 String scriptTemplate =
"//enter your script code here";
143 scriptTemplate = StreamUtil.readString(getClass().getResourceAsStream(
"/scripts/authenticator-template.js"));
144 }
catch (IOException ioe) {
147 script.setDefaultValue(scriptTemplate);
148 script.setHelpText(
"The script used to authenticate. Scripts must at least define a function with the name 'authenticate(context)' that accepts a context (AuthenticationFlowContext) parameter.\n" +
149 "This authenticator exposes the following additional variables: 'script', 'realm', 'user', 'session', 'authenticationSession', 'httpRequest', 'LOG'");
151 return asList(name, description, script);
static final Logger LOGGER
Definition: ScriptBasedAuthenticatorFactory.java:48
◆ getDisplayType()
String org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.getDisplayType |
( |
| ) |
|
|
inline |
◆ getHelpText()
String org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.getHelpText |
( |
| ) |
|
|
inline |
118 return "Script based authentication. Allows to define custom authentication logic via JavaScript.";
◆ getId()
String org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.getId |
( |
| ) |
|
|
inline |
static final String PROVIDER_ID
Definition: ScriptBasedAuthenticatorFactory.java:50
◆ getReferenceCategory()
String org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.getReferenceCategory |
( |
| ) |
|
|
inline |
◆ getRequirementChoices()
AuthenticationExecutionModel.Requirement [] org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.getRequirementChoices |
( |
| ) |
|
|
inline |
static final AuthenticationExecutionModel.Requirement [] REQUIREMENT_CHOICES
Definition: ScriptBasedAuthenticatorFactory.java:52
◆ init()
void org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.init |
( |
Config.Scope |
config | ) |
|
|
inline |
◆ isConfigurable()
boolean org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.isConfigurable |
( |
| ) |
|
|
inline |
◆ isSupported()
boolean org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.isSupported |
( |
| ) |
|
|
inline |
156 return Profile.isFeatureEnabled(Profile.Feature.SCRIPTS);
◆ isUserSetupAllowed()
boolean org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.isUserSetupAllowed |
( |
| ) |
|
|
inline |
◆ postInit()
void org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.postInit |
( |
KeycloakSessionFactory |
factory | ) |
|
|
inline |
◆ LOGGER
final Logger org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.LOGGER = Logger.getLogger(ScriptBasedAuthenticatorFactory.class) |
|
staticprivate |
◆ PROVIDER_ID
final String org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.PROVIDER_ID = "auth-script-based" |
|
static |
◆ REQUIREMENT_CHOICES
final AuthenticationExecutionModel.Requirement [] org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory.REQUIREMENT_CHOICES |
|
staticpackage |
初期値:= {
AuthenticationExecutionModel.Requirement.REQUIRED,
AuthenticationExecutionModel.Requirement.OPTIONAL,
AuthenticationExecutionModel.Requirement.DISABLED}
◆ SINGLETON
このクラス詳解は次のファイルから抽出されました: