Class WebAuthnPasswordlessAuthenticator
- java.lang.Object
-
- org.keycloak.authentication.authenticators.browser.WebAuthnAuthenticator
-
- org.keycloak.authentication.authenticators.browser.WebAuthnPasswordlessAuthenticator
-
- All Implemented Interfaces:
Authenticator
,CredentialValidator<WebAuthnCredentialProvider>
,Provider
public class WebAuthnPasswordlessAuthenticator extends WebAuthnAuthenticator
Authenticator for WebAuthn authentication with passwordless credential. This class is temporary and will be likely removed in the future during future improvements in authentication SPI
-
-
Constructor Summary
Constructors Constructor Description WebAuthnPasswordlessAuthenticator(KeycloakSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebAuthnPasswordlessCredentialProvider
getCredentialProvider(KeycloakSession session)
protected String
getCredentialType()
List<RequiredActionFactory>
getRequiredActions(KeycloakSession session)
Overwrite this if the authenticator is associated withprotected WebAuthnPolicy
getWebAuthnPolicy(AuthenticationFlowContext context)
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 authenticatorprotected boolean
shouldDisplayAuthenticators(AuthenticationFlowContext context)
-
Methods inherited from class org.keycloak.authentication.authenticators.browser.WebAuthnAuthenticator
action, authenticate, close, configuredFor, getRpID
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.authentication.Authenticator
areRequiredActionsEnabled
-
Methods inherited from interface org.keycloak.authentication.CredentialValidator
getCredentials, getType
-
-
-
-
Constructor Detail
-
WebAuthnPasswordlessAuthenticator
public WebAuthnPasswordlessAuthenticator(KeycloakSession session)
-
-
Method Detail
-
getWebAuthnPolicy
protected WebAuthnPolicy getWebAuthnPolicy(AuthenticationFlowContext context)
- Overrides:
getWebAuthnPolicy
in classWebAuthnAuthenticator
-
getCredentialType
protected String getCredentialType()
- Overrides:
getCredentialType
in classWebAuthnAuthenticator
-
shouldDisplayAuthenticators
protected boolean shouldDisplayAuthenticators(AuthenticationFlowContext context)
- Overrides:
shouldDisplayAuthenticators
in classWebAuthnAuthenticator
-
setRequiredActions
public void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
Description copied from interface:Authenticator
Set actions to configure authenticator- Specified by:
setRequiredActions
in interfaceAuthenticator
- Overrides:
setRequiredActions
in classWebAuthnAuthenticator
-
getRequiredActions
public List<RequiredActionFactory> getRequiredActions(KeycloakSession session)
Description copied from interface:Authenticator
Overwrite this if the authenticator is associated with- Specified by:
getRequiredActions
in interfaceAuthenticator
- Overrides:
getRequiredActions
in classWebAuthnAuthenticator
- Returns:
-
getCredentialProvider
public WebAuthnPasswordlessCredentialProvider getCredentialProvider(KeycloakSession session)
- Specified by:
getCredentialProvider
in interfaceCredentialValidator<WebAuthnCredentialProvider>
- Overrides:
getCredentialProvider
in classWebAuthnAuthenticator
-
requiresUser
public boolean requiresUser()
Description copied from interface:Authenticator
Does this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?- Specified by:
requiresUser
in interfaceAuthenticator
- Overrides:
requiresUser
in classWebAuthnAuthenticator
- Returns:
-
-