POST /passkey/register
Initiates the passkey signup flow for a new user.
In response, Auth0 returns PublicKeyCredentialCreationOptions and a session ID. Check timeout
under authn_params_public_key
in response for session timeout.
The passkey signup flow supports Organizations through the organization
parameter, following the behavior described in Login Flows for Organizations. If your application is configured for Business Users, you must provide the organization
parameter and a valid Organization name or identifier value. After the user registers a passkey, Auth0 enrolls them in the provided Organization.
Parameter | Description |
---|---|
client_id | Required. The client_id of your application. |
realm | Optional. The name of the connection to associate with this user. If a connection is not specified, your tenant’s default directory is used. |
user_profile | Required. An object containing identification information for the user. By default, this includes a valid email and an optional display name .If you have enabled Flexible Identifiers for your database connection, you may use a combination of email , phone_number , or username as identifiers. These options can be required or optional and must match your Flexible Identifier configuration.If the passed identifier (such as email ) already exists in the directory, the user should be prompted to complete the Login flow instead. |
POST /oauth/token
Uses the to authenticate the user with the provided credentials to create their account and return the requested tokens.
The authn_response
parameter is based on the Web Authentication API specification. In the native passkey flow, the information passed to this endpoint can be retrieved through your mobile application’s native APIs:
Parameter | Description |
---|---|
grant_type | Required. Include the value: urn:okta:params:oauth:grant-type:webauthn |
client_id | Required. The client_id of your application |
realm | Optional. The name of the connection to associate with the user. If a connection is not specified, your tenant’s default directory is used. |
scope | Optional. Use openid to get an ID token or openid profile email to include user profile information in the ID token. |
audience | Optional. API identifier of the API for which you want to get an access token. |
auth_session | Required. Session ID returned during the initial passkey challenge request. |
authn_response | Required. An object containing the following items:
|
authn_response.id | Required. Base64URL credential ID. |
authn_response.rawId | Required. Base64URL credential ID. |
authn_response.type | Required. Include the value: public-key |
authn_response.authenticatorAttachment | Required. Include the values:
|
authn_response.response | Required. An object containing the following items:
|
create:me:authentication_methods
scope for the /me
endpoint.
POST /me/v1/authentication-methods
The first step is to initiate the enrollment process. This is done by making a POST request to the /me/v1/authentication-methods
endpoint.
Parameter | Description |
---|---|
type | Required. Include the value: public-key . |
connection | Optional. The name of the connection in which to create the passkey. |
identity | Optional. The user’s identity. Used with linked accounts. |
auth_session
property in the response body is the identifier of the current authentication session. This must be passed to the /verify
endpoint.POST /me/v1/authentication-methods/passkey|new/verify
passkey|new
for new enrollments.Parameters | Description |
---|---|
auth_session | Required. The session identifier received in the response of the first POST request to /me/v1/authentication-methods . |
authn_response | Required. The authn_response parameter is based on the Web Authentication API specification. In the native passkey flow, the information passed to this endpoint can be retrieved through your mobile application’s native APIs. |
authn_response.id | Required. Base64URL credential ID. |
authn_response.rawId | Required. Base64URL credential ID. |
authn_response.type | Required. Include the value: public-key . |
authn_response.authenticatorAttachment | Required. Include the values: platform , cross-platform . |
authn_response.response | Required. An object containing the following items:
|
POST /passkey/challenge
Initiates the passkey login flow for an existing user who saved a passkey to their account during their initial signup.
In response, Auth0 returns PublicKeyCredentialRequestOptions and a session ID. Check timeout
under authn_params_public_key
in response for session timeout.
The passkey login flow supports Organizations through the organization
parameter, following the behavior described in Login Flows for Organizations. If your application is configured for Business Users, you must provide the organization
parameter and a valid Organization name or identifier value.
All issued tokens are in the context of the provided Organization. If you enabled Auto-Membership for your Organization, the user is automatically enrolled in the Organization after successfully authenticating.
Parameter | Description |
---|---|
client_id | Required. The client_id of your application. |
realm | Optional. The name of the connection to associate with the user. If a connection is not specified, your tenant’s default directory is used. |
POST /oauth/token
Uses the Token endpoint to authenticate the user with the provided credentials and return the requested tokens.
The authn_response
parameter is based on the Web Authentication API specification. In the native passkey flow, the information passed to this endpoint can be retrieved through your mobile application’s native APIs:
Parameter | Description |
---|---|
grant_type | Required. Include the value: urn:okta:params:oauth:grant-type:webauthn |
client_id | Required. The client_id of your application |
realm | Optional. The name of the connection to associate with the user. If a connection is not specified, your tenant’s default directory is used. |
scope | Optional. Use openid to get an ID token or openid profile email to include user profile information in the ID token. |
audience | Optional. API identifier of the API for which you want to get an access token. |
auth_session | Required. Session ID returned during the initial passkey challenge request. |
authn_response | Required. An object containing the following items:
|
authn_response.id | Required. Base64URL credential ID. |
authn_response.rawId | Required. Base64URL credential ID. |
authn_response.type | Required. Include the value: public-key |
authn_response.authenticatorAttachment | Required. Include the values:
|
authn_response.response | Required. An object containing the following items:
|
authn_response.clientExtensionResults | Optional. Contains results of processing client extensions requested by the relying party. |