Passkeys
Let people sign in with the fingerprint, face or screen lock of their device, as the first step or as a phishing-resistant second factor.
A passkey is a WebAuthn credential: a key pair whose private half never leaves the person’s device or password manager. Signing in means unlocking the device the way they already do — fingerprint, face, PIN or screen lock — and the browser only offers the passkey to the site it was created for, so a fake sign-in page has nothing to collect.
In Authio a passkey is one of the sign-in steps a client can ask for. It can replace the password entirely or follow it as a second factor, and the tokens your app receives say which one happened.
How passkeys work in Authio
- Passkeys are created and used on the hosted login, so they are bound to the domain it runs on and work for every client of the realm that offers the
passkeystep. The console can also ask for one, as proof that it is you, through related origins. - Registration asks for a discoverable credential and for user verification, so the person can sign in without typing a username. No attestation is requested: Authio does not ask the device to identify its maker.
- Synced passkeys (iCloud Keychain, Google Password Manager, 1Password and others) and device-bound ones (Windows Hello, security keys) both work.
- A device that already holds a passkey for the account cannot register a second one for it.
- The account passes the same checks as a password sign-in: realm and client active, lockout, suspension, e-mail confirmation and address approval.
First step or second factor
| Used as | What is checked | What the session records |
|---|---|---|
| The first step, instead of a password | The device must verify the person (biometrics or PIN). A passkey without verification is refused here. | Two factors: swk and user, with acr 3. |
| A second factor, after the password | Verification is preferred, not required, so password managers that answer without it are accepted. Only the passkeys of the account whose password was accepted count. | pwd plus swk, and user when the device verified the person. acr is 3 with verification and 2 without. |
A passkey sign-in still follows the client’s other steps: if the client also asks for the e-mail code, the code is asked after the passkey.
Turn passkeys on for a client
Add the passkey step
In Clients, open the client and go to the Login layout section of its page. Add the
passkeystep: first in the list for a passwordless sign-in, afterloginfor a second factor.Choose its requirement and registration
The defaults, Preferred and Offer, build the base gradually: an account without a passkey signs in with its password and is offered to register one; from then on the passkey is asked every time. See requirement and registration for the other values.
Save
The step applies from the next sign-in. The account pages of the client start listing passkeys at the same time.
| You want | Steps, in order | Policy |
|---|---|---|
| Password, with passkeys rolling out | login, passkey | Preferred and Offer. |
| Password plus a passkey for everyone | login, passkey | Required and Require. |
| Passkey first, password as the way in for newcomers | passkey, login | Preferred and Offer. |
| Passkey only | passkey | Required and Never: accounts register their passkey elsewhere first, for example on another client of the realm that has a login step. |
passkey step closes the passkey endpoints for that client too, not only the button. On a passkey-only client, nobody can sign in until the step is back or another step is added.Signing in with a passkey
What the person sees depends on where the step sits:
- As the first step, the screen shows Continue with passkey. The browser lists the passkeys it holds for the site; no username is needed. If the client also has a
loginstep, a link offers I don’t have a passkey yet — sign in with my password. - In the username field, when the client has both
loginandpasskey, the browser’s autofill offers the saved passkeys next to saved passwords (WebAuthn conditional UI). Choosing one signs in without typing anything. - After the password, the browser asks for one of that account’s passkeys. A passkey of somebody else is refused as unknown.
A browser that cannot use passkeys says so on the screen and points to another way in.
Registering a passkey
There are two places a person registers a passkey:
- During sign-in, when the step’s registration is Offer or Require: after signing in another way, the screen shows Set up a passkey, an optional field to name the device and Register this device. With Offer, the screen comes only to accounts with no second factor yet, and Continue without a passkey skips it. With Require, it still comes to every account without a passkey, and this sign-in is all the proof it asks.
- From the account pages, on the Passkeys tab: name the device and choose Register this device. When the account already has a second factor — another passkey, the authenticator app, recovery codes or a phone — the Confirm it is you band asks first for a code from the app, a recovery code, the password or, with Confirm with a passkey, one of the account’s passkeys (see Adding a factor when you already have one). See Account self-service.
When the passkey is not on this device
When the passkey is owed as a second factor, the screen offers My passkey is not on this device — send me a code instead. Authio sends a one-time code to the account’s e-mail and the code answers for the passkey step, even on a client whose steps include no e-mail code. A client that asks for a passkey therefore never locks out someone who lost their device.
The session records only what was actually used — pwd, otp and mfa, with acr 2 — so an app that needs the phishing-resistant level can tell it did not get it and ask again later.
A lost or retired device should also lose its passkey. The person removes it from the Passkeys tab of the account pages, confirming with a code from the authenticator app, a recovery code, the password or one of their passkeys, the one being removed included when the account has a password (see Removing your own factor); an administrator removes it from the console (see below), with no code.
Managing passkeys
| Where | Who | What it shows and does |
|---|---|---|
| Account pages, Passkeys tab | The person | Each passkey’s name, kind of device (this device, phone or tablet, USB, NFC or Bluetooth security key, smart card), whether it is synced, when it was added and last used. Register this device or remove a passkey: removing asks for a code from the authenticator app, a recovery code, the password or a passkey of the account, and so does registering when the account already has a second factor. The tab lists passkeys only when the client offers the passkey step. |
| Users, the Credentials section of the user’s page | An administrator | The authenticator model identified by its AAGUID (Windows Hello, iCloud Keychain, YubiKey and others), transports, backup state and last use, with passkeys that would be lost with their device highlighted. Remove a passkey, or require one on the next sign-in. |
Require a passkey on the next sign-in
Nobody can register a passkey for somebody else: the key is created on the person’s own device and never leaves it. What an administrator can do is make the person’s next sign-in collect one. In Users, open the person and, in the Passkeys band of the Credentials section, switch on Require a passkey on next sign-in, then save from the bar. It needs user:update. The Authenticator devices band has the same switch for a phone; see Multi-factor.
- The demand turns the client’s offer into a demand for that one person. On a client of their realm whose
passkeystep has registration Offer, the sign-in asks them to register a passkey before it goes on, without Continue without a passkey. A step whose registration is already Require asks it anyway. - A client without the
passkeystep, or whose registration is Never, signs the person in as configured. The demand waits for the next sign-in on a client that offers the step, or for the person to register a passkey from the account pages. - The demand withdraws itself once the person registers a passkey, wherever they do it, and the band then reads Not required. Switching it off and saving withdraws it sooner.
- Demanding a passkey of somebody who already holds one is refused: the next sign-in would have nothing to collect.
The Admin API reads and writes the same demand. On Node.js, @hyper.authio/admin calls it as admin.userRequiredEnrolment.get and admin.userRequiredEnrolment.update (see The Admin API from the libraries); on .NET, where IAuthioAdminClient has no method for it, an HttpClient given AddAuthioAccountCredential() calls the route. GET /api/v1/admin/users/{userId}/required-enrolments (user:read) answers what is still demanded, reporting a demand the person has since satisfied as false. PUT on the same path (user:update) replaces it with the body { "passkey": true, "phone": false }; sending false withdraws a demand. A person outside your account answers 404, and a credential the person already holds answers 409 with EnrolmentAlreadyHeld.
await admin.userRequiredEnrolment.update({ userId, body: { passkey: true, phone: false } })A passkey as proof that it is you
Removing one of your own second factors, or adding one next to a factor you already have, asks for proof that the account is yours. One of your passkeys is such a proof, next to a code from the authenticator app, a recovery code and the password. A stolen session cannot produce it, and an account that signs in only with a passkey, with no password, app or recovery codes, proves with it and can put an authenticator app next to it. See Removing your own factor.
- On the account pages, the Authenticator app, Authio app and Passkeys tabs offer Confirm with a passkey when the account has one. In a form, the button asks for the passkey and sends the form; on the Passkeys tab it confirms the passkey, and the proof goes with the next Register this device or Remove.
- In the console, the Confirm with dialog offers Passkey when the account has one and the browser can use it from the console, as explained below.
- The device has to verify the person, with a fingerprint, face, PIN or screen lock, and every try asks for a new challenge, which lapses after 120 seconds by default.
Passkeys in the console: related origins
A passkey belongs to the domain it was registered on, its relying party (rpId). In Authio that is the domain of the API, where the hosted login runs, not the console’s. A browser lets another site ask for those passkeys only when that domain lists it, as WebAuthn’s Related Origin Requests define: the API publishes GET /.well-known/webauthn, which answers { "origins": [...] } with the origins in Passkey:Origins, and 404 when none is configured.
- A passkey works from the console only when the console’s origin is in
Passkey:Origins(Passkey__Origins__Nin the environment) and the browser supports related origins. The console offers the option to an account with a passkey when the browser says it supports them, which it checks withPublicKeyCredential.getClientCapabilities(). Recent Chrome, Edge and Safari do; Firefox does not. - Without that support, the option is not shown and the console points to the account pages: they run on the passkeys’ own domain, so Confirm with a passkey works there in any browser that supports passkeys.
- If the browser refuses the ceremony anyway, for instance because the console’s origin is not in the list, the dialog says so and suggests another way or the account portal.
- On the shared platform, the list is Authio’s configuration. A Dedicated environment does not offer the passkey proof yet.
What your app receives
The ID token carries amr (the methods used) and acr (the level reached). Read them to decide whether a sign-in is strong enough for what the person is about to do:
| Sign-in | amr | acr |
|---|---|---|
| Passkey alone, verified | swk, user, mfa | 3 |
| Password, then a verified passkey | pwd, swk, user, mfa | 3 |
| Password, then a passkey without verification | pwd, swk, mfa | 2 |
| Password, then the recovery code | pwd, otp, mfa | 2 |
To ask for a phishing-resistant sign-in, send acr_values=3: acrValues: '3' in createAuthorizationUrl of @hyper.authio/client, AcrValues = ["3"] in the AuthioAuthorizationRequest of Authio.Client. It is best effort: see step-up.