public class ScriptBasedAuthenticator extends Object implements Authenticator
Authenticator that can execute a configured script during authentication flow.
scripts must provide
| Constructor and Description |
|---|
ScriptBasedAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
action(AuthenticationFlowContext context)
Called from a form action invocation.
|
void |
authenticate(AuthenticationFlowContext context)
Initial call for the authenticator.
|
void |
close() |
boolean |
configuredFor(KeycloakSession session,
RealmModel realm,
UserModel user)
Is this authenticator configured for this user.
|
boolean |
requiresUser()
Does this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?
|
void |
setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user)
Set actions to configure authenticator
|
public void authenticate(AuthenticationFlowContext context)
Authenticatorauthenticate in interface Authenticatorpublic void action(AuthenticationFlowContext context)
Authenticatoraction in interface Authenticatorpublic boolean requiresUser()
AuthenticatorrequiresUser in interface Authenticatorpublic boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
AuthenticatorconfiguredFor in interface Authenticatorpublic void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
AuthenticatorsetRequiredActions in interface AuthenticatorCopyright © 2016 JBoss by Red Hat. All rights reserved.