Hello Auth0 Community,
What is the supported way to enroll a FIRST primary passkey for an existing, email-verified Database user when a Post Login Action requires passkey authentication?
Current configuration:
-
The user has a password but no registered passkey.
-
Passkeys and Local Enrollment are enabled.
-
Progressive Enrollment is OFF and must remain OFF.
-
Public signup is disabled and must remain disabled.
-
A deployed Post Login Action rejects password-based authentication with PASSKEY_REQUIRED / access_denied.
-
That Action must remain unchanged.
-
Existing users’ passkeys must remain unaffected.
A controlled attempt with Progressive Enrollment temporarily enabled did not register a passkey and ended in the Post Login denial. Progressive Enrollment was restored to OFF. We do not want to repeat that experiment without a confirmed compatible flow.
My Account API is available but has not been activated. Its enrollment flow appears to require an already authenticated user, which creates a bootstrap problem for the protected application.
We also understand that the Management API endpoint for creating authentication methods expects a credential whose verification has already been completed; it does not replace the user’s WebAuthn enrollment ceremony.
Is there an officially supported enrollment-only flow, administrative invitation, or recovery procedure that can:
-
Enroll the first primary passkey for this existing account.
-
Preserve the current RP ID and existing users’ credentials.
-
Keep the mandatory Post Login Action unchanged.
-
Keep Progressive Enrollment OFF and public signup disabled.
-
Avoid granting access to the protected application before passkey authentication succeeds?
If a separate enrollment-only application with My Account API is the supported approach, what authentication flow, hosting origin, RP ID requirements, and minimum scopes are necessary?
Please distinguish primary passkey enrollment from WebAuthn MFA enrollment. Links to official documentation or a supported end-to-end example would be appreciated.
Thank you.
Hi @juan2761911
Welcome to the Auth0 Community!
I understand you are encountering the PASSKEY_REQUIRED (access_denied) error from an Auth0 Post-Login Action when attempting to enroll a first primary Web Authentication (WebAuthn) passkey for an existing Auth0 Database user who only has a password, while Progressive Enrollment and Public Signup remain disabled.
In Auth0, there is no unauthenticated recovery flow or Auth0 Management Application Programming Interface (Management API) endpoint that can enroll a first primary passkey without an authenticated user session. To enroll a first primary passkey for an existing Auth0 Database user, you must use a dedicated Enrollment-Only Application with the Auth0 My Account Application Programming Interface (My Account API), provided that your Auth0 Post-Login Action scopes its PASSKEY_REQUIRED check to your protected application’s Client Identifier (client_id).
Root Cause Summary
-
Auth0 Post-Login Actions Run Before Progressive Enrollment: When a user logs in with a password (pwd), the Auth0 Post-Login Action executes before Universal Login renders the passkey-enrollment prompt, terminating the login before enrollment can occur;
-
Local Enrollment & Public Signup Cannot Be Used: Local Enrollment (passkey-enrollment-local) requires an existing cross-device passkey to trigger, and the embedded signup endpoint (POST /passkey/register) rejects existing users;
-
Primary Passkeys Differ from WebAuthn Multi-Factor Authentication (MFA): Primary passkeys ("type": "passkey", event.authentication.methods: [{ name: "passkey" }]) are first-factor Database credentials and cannot be enrolled via api.authentication.enrollWith(), which only supports second-factor WebAuthn MFA (webauthn-platform / webauthn-roaming).
Official Recommended Points of Action: Enrollment-Only Application via Auth0 My Account API
** Prerequisite:** Every authentication flow that issues a user-scoped Auth0 My Account API access token triggers the Auth0 Post-Login Action pipeline. Your Auth0 Post-Login Action must either already scope its PASSKEY_REQUIRED enforcement to the protected application’s event.client.client_id, or exempt requests targeting the Auth0 My Account API audience (https://<YOUR_CUSTOM_DOMAIN>/me/).
-
Activate the Auth0 My Account API & Grant Minimum Scopes: In the Auth0 Dashboard under Applications > APIs, activate the My Account API, create your dedicated Enrollment-Only Application, enable the Authorization Code and Passkey (urn:okta:params:oauth:grant-type:webauthn) grant types, and authorize the minimum scope create:me:authentication_methods (plus read:me:authentication_methods if checking enrollment status).
-
Host the Enrollment Application Under Your Existing Relying Party Identifier (RP ID): To keep your tenant RP ID and existing users’ passkeys unchanged, host the Enrollment-Only Application over Hypertext Transfer Protocol Secure (HTTPS) on the same domain or a registrable subdomain of your current RP ID (for example, https://enroll.example.com if the RP ID is example.com, or https://app.example.com/enroll if the RP ID is app.example.com), and add the origin to Allowed Web Origins and Allowed Origins (CORS).
-
Authenticate Scoped Strictly to the Auth0 My Account API Audience: Authenticate the existing user via the Authorization Code Flow with Proof Key for Code Exchange (PKCE) on your Auth0 Custom Domain requesting only audience=https://<YOUR_CUSTOM_DOMAIN>/me/ and scope=openid create:me:authentication_methods so the user never receives an access token for your protected application.
-
Initiate Primary Passkey Enrollment (POST /me/v1/authentication-methods): Call the Auth0 My Account API with { "type": "passkey" } (or use the pre-built <UserPasskeyManagement /> Universal Component) to obtain the auth_session and WebAuthn creation challenge (authn_params_public_key), then pass those options to navigator.credentials.create() in the browser.
-
Confirm Passkey Enrollment (POST /me/v1/authentication-methods/{id}/verify): Submit the auth_session and the browser’s WebAuthn attestation response to confirm the credential and receive 200 OK ("confirmed": true).
-
Clear the Password Session Before Redirecting to the Protected Application: Immediately redirect the user through the Auth0 Logout endpoint (https://<YOUR_CUSTOM_DOMAIN>/v2/logout?client_id=<ENROLLMENT_CLIENT_ID>&returnTo=<PROTECTED_APP_URL>) to terminate the password-authenticated Single Sign-On (SSO) session and require a primary passkey login on the protected application.
We hope the steps above helped resolved the primary passkey enrollment workflow for your existing Auth0 Database users!
Have a great one,
Gerald
Thank you for your explanation. We have now confirmed:
- Our team uses the Free ($0) plan.
- We have no verified custom domain. Existing passkeys use the current canonical Auth0-domain RP ID, which we must preserve.
- The deployed Post Login Action already restricts PASSKEY_REQUIRED to the protected application’s client_id. It does not enforce that check for every client.
- My Account API still shows Activate and has not been activated.
- The existing Database user is email-verified but has no primary passkey. Progressive Enrollment and public signup remain OFF.
Before changing anything, could you clarify two remaining blockers?
-
Is create:me:authentication_methods currently available to Free tenants, or does it still require a tenant-specific Early Access entitlement? A May 2026 Community reply mentioned plan restrictions. Is there a supported read-only way to confirm availability for an inactive My Account API without activating it merely to discover the scopes? If tenant-specific checks are needed, please indicate an official private channel; we will not post tenant identifiers or credentials here.
-
Can a dedicated enrollment-only web application enroll this existing user’s first primary passkey while preserving the canonical Auth0 RP ID and the existing owner’s credential? The official auth0-flutter web example states that enrollment challenges on the canonical *.auth0.com domain fail with HTTP 400 requiring a custom domain:
auth0-flutter/auth0_flutter/EXAMPLES.md at main · auth0/auth0-flutter · GitHub
The October 30 support article also describes origin/RP ID restrictions and related-origin support as a future feature:
Is there an Auth0-hosted enrollment page, supported invitation/ticket, or another documented flow that satisfies these constraints without changing the RP ID, deployed Action, public-signup policy or Progressive Enrollment setting? We are asking about a FIRST primary passkey, not WebAuthn MFA, importing a credential, or enrolling from an already existing passkey.
If this combination is currently unsupported, an explicit confirmation would help us avoid further failed trials. We have not activated the API, created an enrollment client, or changed existing credentials.
Thank you.