Class WebAuthnPasswordlessAuthenticator
java.lang.Object
org.keycloak.authentication.authenticators.browser.WebAuthnAuthenticator
org.keycloak.authentication.authenticators.browser.WebAuthnPasswordlessAuthenticator
- All Implemented Interfaces:
Authenticator,CredentialValidator<WebAuthnCredentialProvider>,Provider
- Direct Known Subclasses:
PasskeysConditionalUIAuthenticator,WebAuthnConditionalUIAuthenticator
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
-
Field Summary
Fields inherited from class org.keycloak.authentication.authenticators.browser.WebAuthnAuthenticator
session -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaction(AuthenticationFlowContext context) Called from a form action invocation.getCredentialProvider(KeycloakSession session) protected StringgetRequiredActions(KeycloakSession session) Overwrite this if the authenticator is associated withprotected WebAuthnPolicybooleanDoes this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?voidsetRequiredActions(KeycloakSession session, RealmModel realm, UserModel user) Set actions to configure authenticatorprotected booleanprotected booleanvalidateUsername(AuthenticationFlowContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> formData, String username) Methods inherited from class org.keycloak.authentication.authenticators.browser.WebAuthnAuthenticator
authenticate, close, configuredFor, createErrorResponse, fillContextForm, getRpID, setErrorResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.authentication.Authenticator
areRequiredActionsEnabledMethods inherited from interface org.keycloak.authentication.CredentialValidator
getCredentials, getType
-
Constructor Details
-
WebAuthnPasswordlessAuthenticator
-
-
Method Details
-
getWebAuthnPolicy
- Overrides:
getWebAuthnPolicyin classWebAuthnAuthenticator
-
getCredentialType
- Overrides:
getCredentialTypein classWebAuthnAuthenticator
-
shouldDisplayAuthenticators
- Overrides:
shouldDisplayAuthenticatorsin classWebAuthnAuthenticator
-
setRequiredActions
Description copied from interface:AuthenticatorSet actions to configure authenticator- Specified by:
setRequiredActionsin interfaceAuthenticator- Overrides:
setRequiredActionsin classWebAuthnAuthenticator
-
getRequiredActions
Description copied from interface:AuthenticatorOverwrite this if the authenticator is associated with- Specified by:
getRequiredActionsin interfaceAuthenticator- Overrides:
getRequiredActionsin classWebAuthnAuthenticator- Returns:
-
getCredentialProvider
- Specified by:
getCredentialProviderin interfaceCredentialValidator<WebAuthnCredentialProvider>- Overrides:
getCredentialProviderin classWebAuthnAuthenticator
-
requiresUser
public boolean requiresUser()Description copied from interface:AuthenticatorDoes this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?- Specified by:
requiresUserin interfaceAuthenticator- Overrides:
requiresUserin classWebAuthnAuthenticator- Returns:
-
action
Description copied from interface:AuthenticatorCalled from a form action invocation.- Specified by:
actionin interfaceAuthenticator- Overrides:
actionin classWebAuthnAuthenticator
-
validateUsername
protected boolean validateUsername(AuthenticationFlowContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> formData, String username)
-