Skip to main content

Passkeys

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Use passkeys to offer phishing-resistant, passwordless authentication. Choreo Identity & Access Management exposes WebAuthn-based APIs to register passkey credentials and to authenticate users with those credentials.

Overview​

Passkeys are a modern, secure alternative to passwords based on the WebAuthn standard. They use public-key cryptography to provide:

  • Phishing-resistant authentication: Passkeys are bound to your domain and cannot be used on fake sites
  • Passwordless experience: Users authenticate with biometrics, PINs, or security keys instead of remembering passwords
  • Cross-device compatibility: Passkeys sync across devices via platform authenticators (e.g., iCloud Keychain, Google Password Manager)

Choreo Identity & Access Management supports passkeys through two approaches:

  1. Choreo Identity & Access Management Gate (Hosted UI): Use Choreo Identity & Access Management's hosted authentication pages (gate) by configuring passkeys in your application settings, no custom UI or API calls needed
  2. Flow-based approach: Integrate passkeys into orchestrated authentication/registration flows via the /flow/execute API, combining passkeys with other authentication methods

Both approaches follow the WebAuthn standard ceremony:

  • Registration: Generate a credential creation challenge, collect the attestation from the browser's navigator.credentials.create(), and store the credential
  • Authentication: Generate an assertion challenge, collect the signed assertion from navigator.credentials.get(), and verify it

Prerequisites​

  • Serve the UI over HTTPS with a hostname that matches your WebAuthn Relying Party ID (RP ID).
  • Use a WebAuthn-capable browser (recent Chrome, Edge, Safari, or Firefox); you can confirm support at https://passkeys.dev/device-support/ or by checking window.PublicKeyCredential in the browser console.
  • Ensure users already exist or are created beforehand in Choreo Identity & Access Management for passkey registration.

Use Choreo Identity & Access Management Gate (Hosted UI)​

The simplest way to enable passkeys is through Choreo Identity & Access Management Gate, Choreo Identity & Access Management's hosted authentication and registration UI. This approach uses OAuth2/OIDC authorization flow:

  1. Create an application in the Choreo Identity & Access Management Console (or via the Application API).
  2. Configure authentication flows for the application:
    • Navigate to Applications → Select your application → Flows tab
    • Select an Authentication Flow that includes passkey authentication (e.g., "Passkey Authentication" or "Basic + Passkey Authentication and Registration Flow")
    • Optionally, select a Registration Flow that includes passkey registration (e.g., "Passkey Registration Flow")
    • The flow builder UI lets you customize which executors run and configure relying party settings
  3. Integrate with your application:
    • Redirect users to Choreo Identity & Access Management's OAuth2 authorize endpoint:
      https://<DATA_PLANE_URL>/oauth2/authorize?client_id=<your-client-id>&redirect_uri=<your-callback>&response_type=code&scope=openid
    • Choreo Identity & Access Management automatically redirects to Choreo Identity & Access Management Gate
    • Choreo Identity & Access Management Gate renders the authentication UI based on your selected flow, handling passkey WebAuthn ceremonies in the browser
    • After successful authentication, users are redirected back to your application with an authorization code (exchange it for tokens via /oauth2/token)

This approach requires no custom UI development or direct WebAuthn API calls from your application. Choreo Identity & Access Management Gate (gate) handles:

  • Rendering sign-in/registration prompts based on the configured flow
  • Passkey registration during user sign-up (if registration flow includes passkey executor)
  • Passkey authentication during sign-in
  • Fallback to other authentication methods (password, social login, etc.) as defined in the flow
  • All WebAuthn ceremony handling (navigator.credentials.create() and .get())

When to use this approach:

  • You want a quick setup without building custom authentication UIs
  • You're using Choreo Identity & Access Management as an OAuth2/OIDC provider for your applications
  • You want Choreo Identity & Access Management to manage the full authentication experience with customizable flows

When to use the flow-based approach:

  • You need full control over the UI/UX beyond what flow configuration offers
  • You're building a mobile application or SPA with custom authentication flows that don't fit OAuth2 redirect flow
  • You want to embed authentication directly in your application without redirects

Use Passkeys with Flow/Execute​

Passkeys also work through the flow engine (POST /flow/execute), which returns dynamic prompts and additional data.

note

Applications configured with the authorization_code grant type cannot start flows directly through POST /flow/execute. They must initiate authentication through the Authorization endpoint (GET /oauth2/authorize). See Integration Models.

Authentication with Flow/Execute​

  1. Start the flow. Send an initial flow request.
curl -k -X POST https://<DATA_PLANE_URL>/flow/execute \
-H "Content-Type: application/json" \
-d '{
"applicationId": "<app-id>",
"flowType": "AUTHENTICATION"
}'
  • The response includes an executionId and a step action for passkeys. data.additionalData.passkeyChallenge contains the WebAuthn request options. The passkey session token is stored server-side in the flow context runtime data and is managed by the server; the client does not need to read or send it.
  1. Run WebAuthn in the browser. Call navigator.credentials.get() with the decoded passkeyChallenge.

  2. Continue the flow. Post the assertion back to the flow engine.

curl -k -X POST https://<DATA_PLANE_URL>/flow/execute \
-H "Content-Type: application/json" \
-d '{
"executionId": "<execution-id-from-step>",
"action": "<action-ref-from-step>",
"inputs": {
"credentialId": "<credential-id>",
"clientDataJSON": "<base64url>",
"authenticatorData": "<base64url>",
"signature": "<base64url>",
"userHandle": "<base64url-optional>"
}
}'
  • On success, the next response either completes the flow (with an assertion) or advances to the next step.

Registration with Flow/Execute​

Passkey registration in a flow must run after the user is created or identified. Ensure the flow provisions the user (e.g., collecting username/email and running provisioning) or resolves an existing user before the passkey register start node, as shown in the bundled flow definitions.

  1. Start a registration flow. Send an initial flow request.
curl -k -X POST https://<DATA_PLANE_URL>/flow/execute \
-H "Content-Type: application/json" \
-d '{
"applicationId": "<app-id>",
"flowType": "REGISTRATION"
}'

Reminder: Calling /flow/execute with a flow that only runs the passkey registration executor is impractical; the flow must first provision or resolve the user so registration has a valid subject.

  • The response includes an executionId, a registration step action, and data.additionalData.passkeyCreationOptions with the WebAuthn creation options. The passkey session state is maintained server-side and associated with the flow, so clients only need to carry executionId (and the step action) between calls. Ensure the flow has already collected the user identifier before this step because registration requires a user ID.
  1. Run WebAuthn in the browser. Call navigator.credentials.create() with the decoded passkeyCreationOptions.

  2. Finish registration in the flow. Post the attestation back to the flow engine.

curl -k -X POST https://<DATA_PLANE_URL>/flow/execute \
-H "Content-Type: application/json" \
-d '{
"executionId": "<execution-id-from-step>",
"action": "<action-ref-from-step>",
"inputs": {
"credentialId": "<credential-id>",
"clientDataJSON": "<base64url>",
"attestationObject": "<base64url>",
"credentialName": "My laptop key"
}
}'
  • On success, the response includes credential metadata (e.g., passkeyCredentialID) or advances to the next step of the flow.

Common Issues​

  • Origin mismatch: The browser origin must be listed under passkey.allowed_origins and must match the RP ID domain.
  • HTTP instead of HTTPS: WebAuthn requires HTTPS in production.
  • User not found: Ensure the user exists in Choreo Identity & Access Management before registering a passkey.

Was this page helpful?