Passkeys (WebAuthn / FIDO2)¶
Give users the strongest, simplest sign-in available — phishing-resistant, password-free, and backed by hardware.
What it is¶
HelixIAM supports WebAuthn / FIDO2 passkeys as a first-class authentication factor. A passkey is a cryptographic credential bound to the user's device and to your origin. Because the private key never leaves the authenticator and the signature is scoped to your domain, passkeys are phishing-resistant by design — there is no shared secret to steal, replay, or relay.
Helix works with both authenticator types:
- Platform authenticators — built into the user's device (Face ID, Touch ID, Windows Hello, Android biometrics).
- Roaming authenticators — portable security keys that move between devices over USB, NFC, or Bluetooth.
Why it matters¶
- Phishing-resistant — credentials are cryptographically bound to your origin, so a lookalike site cannot harvest them.
- No shared secret — nothing to breach, reuse, or enter incorrectly.
- Low friction — a biometric or a key tap replaces typing codes.
- Primary or step-up — usable as the main sign-in factor or as a strong step-up second factor inside a flow.
A secure origin is required
WebAuthn only operates over a secure (https) origin. Passkeys cannot be registered or used over plain HTTP. Ensure your sign-in pages are served over TLS before enabling this factor.
How it works¶
- Registration — the user's authenticator generates a key pair; the public key is registered with Helix and the private key stays on the device.
- Authentication — Helix issues a challenge; the authenticator signs it (after a local biometric or key-tap gesture) and returns the signature.
- Verification — Helix verifies the signature against the registered public key and the request origin, completing the factor.
Enrolment¶
Users add a passkey themselves, on their account page (/realms/{realm}/account, see the
account console). Nothing at sign-in asks them to create one: a passwordless
first step only finds a passkey that already exists, so a user without one signs in with Use password instead
first.
- The user signs in and opens their account page.
- Under Two-step verification they click Add a passkey (Add another passkey once they have one). If they already have a second step, they confirm it first.
- The browser prompts for a platform authenticator (biometric) or a roaming security key, and the passkey is registered to the realm, ready for the next sign-in.
The registration page itself is /realms/{realm}/webauthn/register; you can link users to it directly.
New passkeys are registered as discoverable credentials, so they also work for a passwordless first step. There is no required action for passkey enrolment.
Turn the passkey step on after users have a passkey
A realm whose sign-in starts with Passkey (passwordless) still offers Use password instead, so nobody is locked out, but tell users to add a passkey before you make it the default.
The relying party¶
A passkey is bound to the host it was created on. HelixIAM uses the host of IDP_BASE_URL (the sign-in host) by
default; set HELIX_WEBAUTHN_RP_ID to a parent domain to share passkeys between subdomains (see
Configuration). Changing it later makes existing passkeys
unusable.
When users sign in on several hosts under that parent domain (login.example.com and admin.example.com under
example.com), list each host in HELIX_WEBAUTHN_ORIGINS (Helm: config.webauthn.origins): the server accepts a
passkey only from an origin it knows, and without the list that is the sign-in host alone. See
One RP ID, several sign-in hosts.
The passkey sign-in page shows the title, the Use a passkey button (it has the focus, so Enter opens the browser's passkey prompt) and Use password instead. A passkey that signs nobody in shows "Passkey not recognised. Try again." above the button.
Use in a flow¶
Add a passkey step to a sign-in journey as either:
- the first step (Passkey (passwordless)) — the sign-in page shows the passkey prompt without asking for a username first. User verification is required, and the passkey must belong to a user of the realm. The Authenticator app is not needed for this. Users can always choose Use password instead. After a passkey sign-in, second-factor steps are skipped; conditions and consent still apply.
- a method in a stage — a second factor after the password, or a conditional step-up factor challenged only for sensitive applications or elevated risk. When an earlier step already identified the user, only that user's passkeys are offered.
Watch: add a passkey step¶
In the console¶
There is no separate passkey screen. A passkey is placed in a flow on the Authentication page, and a user's passkeys are listed on the user's Passkeys & codes tab.
- Open Authentication and pick the flow (or click New flow).
- For a passwordless sign-in, choose Passkey (passwordless) under First step. For a second factor or step-up, add Passkey (WebAuthn) to a stage with + method, and set the stage's When it runs to Always or Only when (a conditional step-up).
- Click Save changes, and bind the flow under Where this flow is used.
- Confirm your sign-in origin is served over https — WebAuthn will not operate over plain HTTP.
- Users then add a passkey on their account page (Add a passkey, see Enrolment).
Encourage a second passkey
Prompt users to register more than one passkey (for example, a phone biometric and a roaming key) so losing one device doesn't lock them out. Recovery codes provide an additional fallback — see OTP factors.
Over the API¶
Passkey registration and authentication are WebAuthn protocol ceremonies run in the user's browser during login or from the account console — there is no admin "add a passkey for a user" endpoint (the private key never leaves the device). From the admin API you place the passkey authenticator into a flow. The examples assume you have set $HELIX_URL / $REALM and logged in — see Authenticating to the API.
List the passkey authenticators¶
Both are LoA 3 — the strongest phishing-resistant factors in the registry alongside device push.
[
{ "id": "webauthn", "displayName": "Passkey (WebAuthn)", "factorClass": "POSSESSION", "levelOfAssurance": 3, "category": "METHOD" },
{ "id": "passkey-login", "displayName": "Passwordless passkey", "factorClass": "POSSESSION", "levelOfAssurance": 3, "category": "METHOD", "firstStepCapable": true }
]
webauthn— a passkey used as a second/step-up factor after another step.passkey-login— a passwordless sign-in where the passkey is the sign-in (console: Passkey (passwordless)). It can be the flow's first step.
Place a passkey in a flow¶
Add the chosen authenticatorId to the flow's execution tree with the requirement you want (REQUIRED or CONDITIONAL). To make passkey-login the first step, put it at the top level with "requirement": "REQUIRED" and "config": {"firstStep": "true"}; a flow has at most one first step. See Authentication flows → Over the API for the PUT /flows/{alias} call.
Full endpoint set¶
Method & path (under /admin/realms/{realm}) |
Purpose |
|---|---|
GET /authenticators |
List the passkey factors (webauthn, passkey-login) |
GET /flows/{alias} · PUT /flows/{alias} |
Read / save the flow that presents the passkey step |
Registration is on the protocol surface
The WebAuthn create/get ceremonies happen during login and from the account console, not via /admin.