authcha learn

Learn / Identity and security

Passkeys and push sign-in for device logins

Module 3 of 5 · 30 minutes

By the end you can

  • Describe how passkey push works from the device, the phone and Authcha's side
  • Meet the requirements: a named HTTPS console and a trusted certificate
  • Enroll a user and set the push keyword and approval time
  • Explain why number matching defeats push fatigue

What it replaces

A password can be phished. A code can be read over someone's shoulder or forwarded. A passkey is a cryptographic key kept on the person's phone, unlocked by fingerprint, face or PIN, and tied to your console's web address, so a look-alike site gets nothing.

Authcha uses passkeys in two ways:

  • Administrators sign in to the console with a passkey.
  • Network device users, the people who log in to routers, switches and firewalls, sign in with passkey push: they type a keyword instead of a password, get a link on their phone, tap the number the device shows, and confirm with their passkey.

Password and one-time code keep working alongside passkeys, per user, so you can roll out gradually.

How passkey push works

  1. On the device, the user types their username and, as the password, your organisation's push keyword (default push).
  2. Authcha sends a link to their phone over the same WhatsApp or SMS channel it uses for codes.
  3. The device shows a two-digit number, for example 47.
  4. On the phone the link opens a page showing which device is being signed in to, from which address and when, and three numbers. The user taps 47 and confirms with fingerprint, face or PIN.
  5. Back on the device, they finish signing in with the same privileges as with a code.

If they pick the wrong number, or tap This wasn't me, the sign-in is blocked and recorded.

Why number matching matters

An attacker who knows a username can make Authcha send a push, but approving it means picking the number shown on the attacker's screen. Someone who reflexively taps "approve" on a request they did not start picks a number at random, and blocks the attempt two times out of three, and the denial is logged. The default messages deliberately leave the number out, so it can only be read from the device being signed in to.

Requirements

  • A DNS name and HTTPS. APP_URL in .env must be the https:// address people use, with a DNS name such as https://authcha.example.com. An IP address or plain http:// does not work.
  • A trusted certificate. Phones must trust the console's certificate: a public CA, or your enterprise CA installed on every managed phone. Browsers disable passkeys on pages with certificate warnings.
  • Reachability. Phones must reach that address on Wi-Fi, VPN or the internet.
  • Phones. Any current iPhone (iOS 16 or later) or Android phone (Android 9 or later with Google Play services) with a screen lock.
  • Working message delivery for codes, and a mobile number on each user.
  • Edition. Sending enrollment links is part of Passwordless Sign-in (Professional and Enterprise). Console passkeys for administrators, and push for users who already have a passkey, work in every edition.

When APP_URL does not qualify, Authcha says why under Profile → Passkeys, does not offer passkeys at sign-in, and refuses to send enrollment links.

Enroll a user

  1. Users, then the fingerprint icon on the user's row.
  2. Send enrollment link. Authcha sends a one-time link to the phone and also shows it once, with a QR code.
  3. The user opens it, names the device, chooses Create passkey and confirms with fingerprint, face or PIN.

A link works once and expires after 24 hours. A new link cancels any earlier unused one. If the user has no mobile number, the link is still created, so share the QR code in person. A user can have several passkeys, and revoking one stops it approving sign-ins at once.

Settings

Under Settings → Authentication Policy → Passwordless push:

SettingDefaultNotes
Push keywordpushOne keyword organisation-wide, 4 to 32 characters, case-sensitive, and different from the code trigger phrase
Time to approve90 secondsHow long the phone link stays answerable and how long an approval can be used. 30 to 300 seconds

Security properties worth knowing

  • User verification is always required. A stolen unlocked phone is not enough, and neither is the link alone.
  • Phishing resistance. A passkey works only on your console's own address.
  • One request at a time. A new push cancels an earlier unanswered one. An approval is used once.
  • Fail closed. Expiry, a wrong number, a delivery failure or an outage is a refusal, never an accept.
  • Tokens are never stored readable. Links carry 256-bit random tokens, and Authcha stores only digests.
  • Licensing never blocks sign-in for someone who already has a passkey.

Watch it

Audit Trail → OTP Funnel shows push_sent, push_approved, push_denied and push_expired. A push_denied means someone entered that user's name and the keyword on a device and was refused, which is worth a look. Admin Actions records every enrollment link and every passkey added or removed.

LabHands-on

Steps 1 and 2 on the demo (viewer login demo-viewer, password Authcha-View-2026). The rest need your own install with a real APP_URL.

  1. Open Profile on the demo and read the Passkeys section.
  2. Open Settings and find Authentication Policy.
  3. Check APP_URL on your install. Is it an https:// DNS name? If not, what would you change?
  4. Enroll yourself: Users, the fingerprint icon, Send enrollment link, then create the passkey on your phone.
  5. On a test device, sign in with your username and the push keyword. Pick the right number on the phone and finish on the device.
  6. Repeat and pick a wrong number. Find the push_denied event in the OTP Funnel.

Check yourselfQuiz

1Why does the default push message omit the two-digit number?
2An attacker triggers a push for a user, who taps a random number. What are the odds the attacker gets in?
3Which APP_URL allows passkeys?
4How long is an enrollment link valid?
5Which events in the OTP Funnel mean someone was refused?

Cheat sheetKeep this

  • Push: username + push keyword (default push) → link on phone → device shows 47 → pick it → passkey confirm → finish on device.
  • Needs: APP_URL = https://<DNS name>, a certificate phones trust, reachable address, phones iOS 16+ or Android 9+, mobile numbers, message delivery.
  • Enroll: Users, fingerprint icon, Send enrollment link (one use, 24 h).
  • Defaults: keyword push, approve within 90 s (30 to 300).
  • Never put {code} in a message template.
  • Watch push_denied in the OTP Funnel.
  • Read more: Passwordless sign-in.