Passwordless login with passkeys only in Keycloak

Passkeys-only login in Keycloak replaces the password with a WebAuthn credential for a defined user population. This page covers the passwordless policy, conditional UI, enrollment, recovery and the fallbacks you still need.

On this page

Passkeys only in Keycloak: when a password-free login is the right design

A team that wants to remove passwords from a self-hosted Keycloak should start by deciding which users can safely lose them. Keycloak's server administration guide documents a passwordless WebAuthn flow in which the user signs in with a passkey or a WebAuthn security key, and the realm can offer passkeys through conditional or modal UI. The flow suits populations whose devices already support platform passkeys or hardware keys, whose applications accept the resulting login, and whose help desk can verify identity without a password reset. Customers on consumer devices, staff on managed laptops and phones, and users of applications that only need a single factor often fit. Shared kiosks, contractors on unmanaged machines and users of older browsers usually do not, so the first deliverable is a population list with a device and application check for each group.

Passwordless does not mean one flow for everyone. The realm design normally keeps the password flow for users who have not enrolled a passkey and moves enrolled users to the passwordless browser flow, which takes a separate binding in the authentication flow settings. Each binding should be tested with a user from each population, including a user who has no passkey, a user whose only passkey is on a lost phone and a user signing in from a browser without WebAuthn support. Confirm the exact flow names, required actions and conditional UI behavior for your Keycloak version in the server administration guide before you write the design, because these settings change between releases.

Removing the password also moves the risk to recovery. If a user cannot sign in, the realm still needs a supported way to re-enroll a passkey, usually through an admin-triggered required action after the help desk verifies identity, or through a recovery method that the organization has approved. Decide whether any fallback remains for users with no passkey, such as a temporary password, a one-time link or a second factor, and who approves it. Record the decision with the owner, the verification steps and the audit events, because the fallback path is where password-free designs most often fail an assessment. Ask any implementation partner to write this fallback procedure as part of the scope, not after go-live.

Passwordless login falls back to passwords only where a passkey cannot work

The sign-in starts at the Keycloak login page, where the browser offers a passkey through conditional UI. A verified passkey completes the login. Users or devices without a usable passkey follow a fallback branch, and lost credentials follow a separate recovery branch that an administrator or help desk handles. Check that the fallback branch cannot bypass the passkey policy, and that recovery re-enrolls a passkey rather than restoring a password by default.

Passkey first sign-in, with fallback and recovery branches kept separate.

Which passwordless configuration fits which population

This table compares the main WebAuthn passwordless choices in Keycloak, including user verification, authenticator types, conditional versus modal UI, and password fallback. Read each row against the users it describes, then check the combination you pick against your own device inventory and help desk capacity before you change any realm-wide setting.

Configuration choiceWhen it fitsTrade-offWhere to confirm detail
User verification set to requiredWorkforce or high-risk populations where every passkey sign-in must prove the user with a PIN, biometric or device unlockUsers on devices without a supported unlock method cannot sign in, so they need a fallback or an alternative deviceKeycloak server administration guide, WebAuthn policy settings
User verification set to preferred or discouragedMixed populations with shared kiosks or older hardware where a tap alone is acceptable for low-risk appsWeaker proof of user presence than required verification, so pair it with step-up for sensitive actionsKeycloak server administration guide, WebAuthn policy settings
Platform authenticators onlyEmployees on managed laptops and phones who can use built-in passkey storagePasskeys tied to one device may not follow a user to a new device without re-enrollmentYour device management baseline and the Keycloak administration guide
Roaming security keys allowedAdministrators and privileged users who need hardware-bound credentialsKeys must be issued, tracked and replaced, which adds help desk workFIDO2 security keys and WebAuthn policy in Keycloak
Attestation and allowed authenticator listsRegulated populations that must limit which authenticator models can registerStrict lists block users with unlisted devices and need ongoing maintenance as models changeFIDO2 security keys and WebAuthn policy in Keycloak
Conditional UIApps where users should see passkey options directly in the username field without an extra clickBrowser and client support varies, so test each target browser and operating systemKeycloak server administration guide, passkeys with conditional UI
Modal UIFlows that need a dedicated passkey prompt, such as a separate sign-in step after a password or identifier entryAdds a click for users and a separate screen to brand and testKeycloak server administration guide, passkeys with modal UI
Password kept as fallback by realm or groupTransition periods, or groups such as contractors and frontline staff with limited device accessEvery retained password is a credential to protect, rate-limit and include in MFA decisionsConditional MFA in Keycloak by role, group or application

How to set up passkeys-only login in a Keycloak realm

This sequence takes a Keycloak realm from a confirmed baseline to a tested passkeys-only sign-in for a pilot group, with enrollment and verification checks at each stage. The output is a realm you can expand to more users once the checklist passes.

  1. Confirm the Keycloak version and edge setup

    Confirm the Keycloak release your team will run, and check it against the upgrade notes for that line before you change anything. Confirm that TLS covers all communication, that a reverse proxy sits in front of the server with path restrictions, and that the admin console and Administration REST API are served on a different hostname or context path from public login URLs. Passkeys depend on the browser seeing the correct origin, so check that the public hostname your users will type matches the one Keycloak is configured to advertise. Done when a test request to the public login page works over HTTPS and the admin paths are not reachable from the public hostname.

  2. Create a test realm

    Create a dedicated test realm rather than changing your production realm, so the passwordless settings, flows and test users stay isolated. Set the realm's frontend URL to the public hostname you confirmed in the previous step. Create a small set of test users with a range of roles and browsers in mind, and keep at least one account in an administrative group that is not part of the pilot. Done when the realm loads on its public login page and a test user can sign in with a password, which confirms the baseline works before passwordless settings are added.

  3. Configure the WebAuthn passwordless policy

    In the realm's authentication settings, open the WebAuthn Passwordless Policy and set the relay party, user verification requirement, resident key preference and allowed authenticator types. Require user verification so that a passkey proves the user with a device PIN, biometric or similar, and decide whether attestation is needed for your audit evidence. Confirm the exact option names and their behavior in the server administration guide for your release, because the labels and defaults can change between versions. Done when the policy is saved and the realm settings show the passwordless policy values you chose.

  4. Enable passkeys and the conditional UI in the browser flow

    Copy the browser flow, then configure the passkey authenticator in the copy so that it is offered as a primary login method. Enable the conditional UI option so the browser can offer saved passkeys in the username field without a separate step. Keep the password form available in the flow for now so that the fallback path is testable. Done when a sign-in attempt on a supported browser shows the passkey prompt or an autofill suggestion for the test user, and the flow diagram in the admin console matches the copy you edited rather than the built-in browser flow.

  5. Pilot with a test group

    Assign a small test group to the passwordless flow, either by binding the flow to a client used by the pilot applications or by controlling which users reach the realm. Keep the password path enabled for this group so that support can compare both paths. Record which applications, browsers and operating systems the pilot covers. Done when each pilot user can register a passkey, sign in with it, and see the expected session and token claims in the application.

  6. Define required actions for enrollment

    Use the required action for passkey registration so that pilot users enroll a passkey on their next sign-in, and check that the action runs after the user signs in with their existing password. Decide whether the password credential is removed after enrollment or kept as a fallback, and document that choice, because it sets the recovery path. Confirm how an administrator can clear a user's passkey and reissue the required action, since that is the first recovery step support will use. Done when a test user is prompted to register, the passkey appears on the user's account in the admin console, and a second sign-in succeeds without a password.

  7. Verify sign-in with a checklist

    Run a written checklist with each target browser, operating system and device class your organization supports, including the applications behind the realm. For each combination, test first registration, sign-in with a passkey, sign-in on a second device, sign-out and re-sign-in, and a failed attempt that falls back to the approved recovery path. Also test a user with no passkey, a user with a passkey on a removed device and an administrator who resets a credential. Record the result of each check and the Keycloak version used. Done when every row passes or has a documented exception that the security owner has accepted.

Enrolling existing users without locking them out

Moving a population that already has passwords to passkeys only is a sequencing problem, and the safe order is to keep the password path working until every user has at least one registered passkey. In Keycloak, the realm's browser flow and the WebAuthn passwordless policy can be configured so that passkeys are offered alongside the password form before any password is removed. Use a required action such as the WebAuthn passwordless registration action to prompt users to enroll at their next sign-in, and set the action so that users who skip it can still log in with their password for the grace period you define. Confirm the exact required action names and their behavior in the version you run, since the server administration guide describes them and the defaults can differ between releases.

Decide the removal point in advance with explicit criteria rather than a single date. A practical gate is a report of users who have no passkey registered, reviewed per group or application, plus a check that each registered passkey has been used at least once. Only then should you remove the password credential or disable the password step for a defined group, starting with a pilot group that includes the users most likely to change devices. Keep a written record of who approved each stage, because auditors and your own security team will ask how the change was controlled. Before any password is removed, the help desk needs a verified recovery process: agreed identity checks, a rule for who can trigger a credential reset, and a documented path for users who never enrolled. Without that process, the first lost device becomes a lockout. Ask your identity team to confirm how Keycloak handles admin-triggered credential removal and re-enrollment in your version, and test that path with a pilot user before the cutover.

Communicate the change in terms users can act on: which device or browser they need, what the first sign-in will look like, what to do if they lose a phone or security key, and the date the password stops working for their group. Send the message before the enrollment prompt appears so users are not surprised by a registration screen. Track enrollment progress and support tickets during each wave, and pause a wave if the help desk volume rises faster than the enrollment rate. Plan the communication and the help desk staffing as part of the rollout scope, since those costs recur for the duration of the transition and are often the largest part of the effort.

Recovery without a password and the fallbacks you still need

Removing passwords does not remove the need for a way back in. Each card below covers one recovery or fallback path that a passkeys-only population depends on, and each one needs an owner, a documented procedure and a test before users rely on it. The MFA recovery sibling topic goes deeper on the procedures themselves.

Recovery codes as a documented option

Recovery codes give a user a one-time way in when every registered passkey is unavailable. Decide up front whether they are offered at all, who generates them, where users store them and how a used code is reported. Confirm in your Keycloak version how recovery codes are enabled and whether they sit in the required action flow, then test a full sign-in with a code on a clean browser. Treat stored codes as a credential with the same protection as a password.

Keycloak docs

Admin reset of WebAuthn credentials

Help desk or administrators need to remove a lost or broken passkey so the user can register a new one. Check in the admin console that the credential can be deleted for a specific user and that the action is logged. Define who may perform the reset, what identity evidence they must collect first, and how the user is forced to enroll again on their next sign-in.

A second registered passkey

A single passkey tied to one phone or laptop is a single point of failure. Require or strongly encourage users to register a second passkey on another device, such as a hardware security key or a second platform authenticator, during first enrollment. Ask your team to confirm whether the policy can enforce a minimum count of registered credentials or whether this remains a user habit you must train for.

The risk of one passkey on a lost device

When a user loses the only device holding a passkey, the account is locked until recovery completes. Map which device types hold passkeys in your population, including synced passkeys that move through a platform account. Lost-device risk also means that anyone who unlocks a stolen phone may reach the account, so review session lifetimes and the cost of a delayed reset.

Help desk identity verification

A reset is only as strong as the check that precedes it. Write a verification procedure that does not rely on information a caller could read from a directory, such as a manager confirmation through a known channel, a video check against an HR record or a callback to a number on file. Test the script with the help desk team and record each reset in the ticket system so auditors can trace who approved it.

Users and devices that cannot use passkeys

Some users work on shared kiosks, locked-down virtual desktops, older browsers or hardware without a platform authenticator. Identify these groups before the policy switches off passwords. Decide whether they get a separate client, a time-limited exception with a second factor, or a supported alternative such as a hardware key, and document the owner and review date for each exception.

Questions teams ask before removing passwords from Keycloak

What drives the effort of a passkeys-only rollout in Keycloak?

The effort depends less on the Keycloak configuration itself and more on how many users, applications and support paths depend on a password today. The work covers the WebAuthn passwordless policy, the login flow and conditional UI, enrollment for existing users, and the account recovery process that replaces the password reset email. Each application that sends users through a password-only path, each directory or identity broker feeding accounts into the realm, and each shared or kiosk device adds work. Ask your team to inventory these before anything else, because that inventory sets the scope more than any single setting does.

Can our own team run a passkeys-only rollout without a partner?

Often yes, if the team already runs Keycloak in production and has someone who owns authentication flows and realm configuration. The configuration changes are not large, but the rollout touches help desk procedures, device policy and application testing, which many internal teams do not run every day. Check three things honestly: whether you have a staging realm that mirrors production, whether someone can test every client login path, and whether the help desk can verify identity without a password. If any of those is missing, a fixed-scope engagement can cover the gap. DeployOpen plans, implements and tests self-hosted Keycloak inside your own infrastructure, and scope and deliverables are agreed in writing before work starts.

What does our side need to provide for the rollout?

Three inputs matter most. First, a set of test users across roles, including administrators, contractors and anyone who uses shared or unmanaged devices, so each login path can be checked before go-live. Second, a device inventory that shows which platforms, browsers and security keys your people use, since passkey support and sync behavior vary by platform. Third, a help desk process for identity verification and credential reset that works without a password, written down and rehearsed. Ask your partner to confirm which of these they expect you to supply and which they will build.

How long does a passkeys-only rollout take?

Duration is driven by population size, the number of integrated applications and how much recovery work each group needs. A rollout for a small internal population with one or two applications is far shorter than one covering thousands of users, many federated clients and several shared device types. Enrollment for existing users is usually paced in waves, and each wave needs monitoring and support capacity. No duration is fixed in this page. Ask for a timeline in the written scope that lists the waves, the applications in each wave, and the checkpoints where you approve moving on.

Can passwords stay as a fallback after we remove them?

Yes, a password can remain as a fallback, but the decision changes the security posture and should be made deliberately. Keeping a password as an alternate path means the weakest login method still exists for any user who triggers it, so the rollout needs a written rule for when fallback is allowed, who approves it and how long it lasts. Some organizations keep a fallback only for specific devices or a limited group, and others remove it entirely and rely on recovery procedures. Your compliance and security teams should decide this with the authentication requirements they are assessed against, and the flow design should be tested for the fallback path as well as the passkey path.

What does a fixed-scope passkeys engagement cover?

A fixed-scope engagement covers the work agreed in writing before it starts: the realm and WebAuthn policy configuration, conditional UI and login flow changes, the enrollment approach for existing users, the account recovery design, testing of each agreed application and device path, and the documentation your operations team needs. It does not cover choices your organization has not agreed to, such as changing identity providers or rewriting applications, unless those are added to scope. Ask for the deliverables list, the test cases you will receive, and what happens if a path turns out to be out of scope. DeployOpen does not publish a price list, and a quote follows from the written scope.

What recurs after the rollout, and what is one-time?

Most of the configuration work is one-time, but some costs recur. Enrollment support, credential reset requests and help desk time continue after go-live, and they tend to peak in the first weeks. Ongoing work includes applying Keycloak releases, reviewing flows after upgrades, and retesting recovery paths when applications change. Keycloak publishes minor releases several times a year, so an upgrade plan keeps the passkey configuration in step with the platform. Ask any partner to separate one-time implementation fees from support or retainer costs, and to state what each one covers.

How do we verify that no login path still accepts a password by accident?

Verification should be a test you run, not an assumption. List every client, flow and entry point that can start a login, including admin consoles, the account console, API clients and any broker or federation path, then test each one with a passkey-only user and confirm that no password prompt appears. Check the authentication flow bindings for each realm and client, not only the default browser flow. Repeat the check after every configuration change or upgrade. A written test matrix that your security team can review is the most useful artifact to request from any rollout, whoever performs the work.

Where to confirm the current Keycloak passwordless behavior

Before a pilot, confirm the passwordless behavior against the exact Keycloak release your environment runs, not against the latest documentation you find. The current release in the supplied facts is 26.8.1, published October 13, 2026, but your production line may be older, and WebAuthn policy options, the passkey conditional and modal sign-in UI, and the required-action flow for registering a passkey can change between minor releases. Start with the Keycloak server administration guide, which documents the WebAuthn policy settings, passkeys with conditional and modal UI, and recovery codes. Then read the Keycloak upgrading guide for every release between your current version and your target, because that is where behavior changes and opt-in breaking changes are listed.

Record the answers for each setting you will use in a short written checklist. For passkeys only, that means the passwordless WebAuthn policy and whether the password credential is removed from the flow, how user verification is required, which authenticator types are allowed, and whether conditional UI appears on your login pages in the browsers your users run. Also confirm how required actions behave for existing users who have only a password, and what the account console shows during enrollment. Ask your DeployOpen or internal Keycloak owner to reproduce each item in a test realm on the same version you will ship, and keep the results with your change record so auditors and reviewers can see what was verified.

Confirm the answers with your own test matrix rather than assuming they hold across browsers, operating systems and password managers. Passkey behavior depends on the client platform as much as on Keycloak, so a pilot should cover the devices your users actually carry. Treat any gap you find as a planning input for fallback and recovery, and repeat the check whenever you upgrade, since the release process gives minor releases a regular cadence and the upgrade notes are where those changes are announced.

How DeployOpen scopes and delivers passkeys-only Keycloak

DeployOpen approaches passwordless login with passkeys only in Keycloak as a fixed-scope change to your identity platform, not a single setting. We agree in writing which applications, user groups, fallback paths and recovery procedures are in scope, then build, test and document the design inside infrastructure you control.

How we scope

  • We confirm which applications and user populations will drop passwords, and which must keep a fallback.
  • We map the WebAuthn passwordless policy, conditional UI and authenticator rules to your written requirements.
  • We agree in writing how enrollment for existing users, help desk recovery and device exceptions are handled.

How we build

  • We configure the passkey flows in a non-production realm first, with client settings and the login theme reviewed together.
  • We test sign-in across the browsers, operating systems and authenticators your users actually use.
  • We verify that no password fallback path remains open by accident, using documented test cases and admin review.

How we hand over

  • We deliver the realm configuration, flow diagrams, test results and an enrollment runbook your team can review.
  • We document the recovery procedure for lost passkeys, including admin reset steps and required action settings.
  • We walk your administrators through the configuration so they can run changes and audit evidence themselves.

How we support

  • Ongoing support, Keycloak upgrades and continuous testing are available as retainers after handover.
  • We can retest the passwordless flows after each Keycloak minor release, since breaking changes are opt-in.
  • We can extend the design to new applications or user groups under a new written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.