Keycloak and NIST SP 800-63B authenticator assurance levels

Keycloak can be configured toward NIST SP 800-63B-4 AAL2 and AAL3 requirements, but the assurance level depends on your authenticators, policies and evidence. This page maps each requirement to settings and gaps.

On this page

Which NIST SP 800-63B assurance requirements Keycloak helps you meet

If your identity team has been asked to show AAL2 or AAL3 for a system, start by separating what Keycloak can configure from what only your organization can decide. Keycloak can enforce authentication methods, session lifetimes and credential policies in a realm, but it cannot determine the assurance level of a deployment on its own. Under NIST Special Publication 800-63B-4, Digital Identity Guidelines: Authentication and Authenticator Management, the assurance level is set by the authenticators a user holds and by how the verifier is deployed and operated. NIST published SP 800-63B-4 as final on July 31, 2025, and it supersedes the March 2020 version of SP 800-63B. Work from the 2025 text, and check any policy, contract or audit template that still cites the 2020 numbering.

Before you change any setting, confirm which authenticators your users will actually hold, which applications will rely on Keycloak for authentication, and which assessor or program owner will accept the evidence. Keycloak's configuration is one input to that determination. A realm can offer a phishing-resistant option and still fail an assessment if a privileged group can fall back to SMS, or if the cryptographic authenticator used at AAL3 does not keep its private key non-exportable. Verify those facts against the authenticator vendors and your own enrollment records. DeployOpen plans and implements the Keycloak configuration, documents it, and prepares the evidence that an assessor will sample. DeployOpen does not certify the system or issue an assurance determination. That decision belongs to your organization and, where required, to an independent assessor.

Mapping SP 800-63B-4 requirements to Keycloak settings

This table pairs each SP 800-63B-4 requirement relevant to AAL2 and AAL3 with the Keycloak capability that addresses it and the settings you must confirm in your own realm. Read each row as a design check: the Keycloak setting is necessary but not sufficient, and the last column names what an assessor will expect to see in your configuration and records. The main takeaway is that phishing resistance and non-exportable keys depend on the authenticator you deploy, while timeouts are fully under your control in Keycloak.

RequirementKeycloak capabilityConfiguration to confirm
Phishing-resistant option offered at AAL2W3C WebAuthn and passkeys, alongside OTP policies and recovery codesWebAuthn is enabled as a required or selectable authentication method in the browser flow, and password plus OTP alone is not the only path offered
Non-exportable private key at AAL3Keycloak verifies WebAuthn credentials but does not control key generation or storageAuthenticator hardware keeps the private key non-exportable; obtain the vendor's documentation and record the model in your authenticator inventory
AAL2 overall reauthentication limit (no more than 24 hours, SHOULD)Realm SSO Session Max and client Client Session MaxRealm SSO Session Max is set at or below 24 hours, and client values are shorter than the realm value
AAL2 inactivity limit (no more than 1 hour, SHOULD)Realm SSO Session Idle and client Client Session IdleSSO Session Idle is set at or below 1 hour, with client idle values shorter than the realm value
AAL3 overall timeout (no more than 12 hours, SHALL)Realm and client session max values applied to applications requiring AAL3Separate client or realm configuration for AAL3 applications with session max at or below 12 hours, verified in the admin console
AAL3 inactivity limit (no more than 15 minutes, SHOULD)Client Session Idle on AAL3 clients, combined with step-up reauthenticationClient Session Idle at or below 15 minutes for AAL3 applications, tested against the actual token and cookie lifetimes
PSTN (SMS or voice) restricted for out-of-band verificationOTP policies and authentication flows that can exclude SMS-based methodsSMS or voice is not configured as a method for AAL2 or AAL3 access, and any custom SMS provider is removed from those flows
Evidence of authenticator and session settingsAdmin events, login events and realm export of flows and session settingsExported realm configuration is kept under change control, and login and admin events are retained for the period your assessor samples

Choosing authenticators for AAL2 and AAL3

Hardware security keys are the clearest fit for a phishing-resistant AAL2 option and a strong candidate for AAL3. Keycloak supports W3C WebAuthn, so the browser binds each credential to the origin that registered it, and a lookalike site cannot obtain a valid response. The private key stays on the key itself.

  • Realm policy: In the WebAuthn policy settings for the realm, set the relying party and allowed authenticator types, and decide whether user verification (a PIN or biometric on the key) is required.
  • Enrollment and flow: Use WebAuthn registration as a required action for enrollment, and add a WebAuthn step to the browser flow so sign-in for in-scope groups cannot succeed with a password alone.
  • Attestation: Choose an attestation preference and confirm which key models your policy accepts. Attestation helps you check the key model, but it does not replace a documented list of approved keys.
  • Non-exportable keys: A credential held on a dedicated security key is device-bound, which matches the non-exportable private key requirement for AAL3. Confirm the key model's properties with its vendor.
  • Spare keys: Require at least two registered keys per user so a lost key does not push the user toward a weaker method.

Check that each approved key model appears in your authenticator inventory and that the sign-in flow rejects password-only access for every group in AAL2 or AAL3 scope.

Mapping reauthentication and inactivity timeouts to Keycloak session settings

The SSO Session Idle and SSO Session Max settings in a Keycloak realm control how long a user's single sign-on session survives without activity and how long it survives in total. Those two realm values set the outer boundary for every application in the realm. NIST SP 800-63B-4 expresses its limits as an overall reauthentication timeout and an inactivity timeout, so the mapping starts there: at AAL2, the overall timeout should be no more than 24 hours and the inactivity timeout no more than 1 hour; at AAL3, the overall timeout shall be no more than 12 hours and the inactivity timeout should be no more than 15 minutes. Set the realm values to meet the strictest population that uses the realm, and confirm the exact timeout semantics against the Keycloak server administration guide for your release.

Client-level Client Session Idle and Client Session Max values sit beneath the realm values and should be shorter than them. Each application client can therefore tighten the limit for its own sessions, and this is where AAL3 requirements usually live. Check these values per client rather than assuming the realm setting covers them, because a client that inherits a long realm timeout will keep a session alive past the limit that applies to its data. Build a register of every client with its assurance level, its client session values and whether it accepts AAL3 flows, and review that register whenever a client is added or changed.

For AAL3 flows, the timeout alone does not prove reauthentication. Create a dedicated browser or authentication flow for the sensitive application, require a WebAuthn or passkey step in it, and pass the authentication requirement to the client through the acr_values parameter so the token records the level achieved. Then test that a session older than the configured limit forces a new authentication with the phishing-resistant factor. Confirm with your assessor how they expect reauthentication to be evidenced, and confirm the behavior of your Keycloak release in a staging realm before relying on it.

Configuration sequence for an AAL2 or AAL3 Keycloak realm

This sequence takes a Keycloak realm from a target assurance level and a defined system scope to a configuration that offers phishing-resistant authentication, enforces session limits and records the events an assessor will ask for. Each step has a check that confirms it is complete before the next one starts.

  1. Confirm the target AAL and systems in scope

    The security or compliance lead decides whether each application needs AAL2 or AAL3, and names the users, roles and applications that fall under each level. Record which accounts are privileged, which access comes from outside the system boundary and which applications share a realm. The step is done when this scope is written down and approved, because every later setting maps back to it. Keycloak cannot infer the assurance level from its own configuration, so this decision has to come from the organization's risk and compliance owners.

  2. Set up a production deployment with TLS

    The platform team deploys Keycloak in production mode with TLS on all communication, behind a reverse proxy that restricts paths. The admin console and Administration REST API are served on a separate hostname or context path from the public frontend URLs. Confirm the separation by requesting the admin paths from the public hostname and checking that they are not reachable. Without this boundary, the admin surface and the login surface share exposure, and the authenticator settings in later steps can be changed by anyone who reaches the public site.

  3. Define authentication flows requiring a phishing-resistant factor

    The identity team creates or adjusts browser authentication flows so that the sign-in for each in-scope client requires a phishing-resistant factor. For AAL2, the flow must offer at least one phishing-resistant option, so the team should confirm that a WebAuthn or passkey step is present and is required for the relevant users or clients. Test the flow with a dedicated test account for each role. The step is done when the flow runs as designed for every in-scope client, and the flow definition is exported and stored under change control.

  4. Configure WebAuthn or passkeys for in-scope users

    The identity team enables the WebAuthn or passkey authenticator options that the chosen flow depends on and sets the policy values for the authenticator, including whether passkeys are discoverable and which user verification setting applies. For AAL3, the team must confirm that the authenticator used has a non-exportable private key, which should be checked against the authenticator vendor's documentation and the hardware in use. Register a test credential for each user type and confirm that enrollment, sign-in and credential removal all work. Record the authenticator models and their key-protection properties as evidence.

  5. Set realm and client session timeouts

    The identity team sets the realm SSO Session Idle and SSO Session Max values to meet the overall reauthentication and inactivity limits for the target AAL, using the values from SP 800-63B-4 for AAL2 or AAL3. Each client then gets Client Session Idle and Max values that are shorter than the realm values, so that a client cannot outlive the realm session. Test by signing in, leaving the session idle and confirming that reauthentication is required at the configured point. The step is done when a recorded test shows each limit firing as expected in every in-scope client.

  6. Disable SMS and voice codes for these flows

    The identity team removes SMS and voice options from the authentication flows and from the required-action or recovery paths for in-scope users, because SP 800-63B-4 restricts the use of the PSTN for out-of-band verification. Check each flow and each conditional branch, including account recovery, since a leftover SMS step is a common gap. Confirm with a test account that no SMS or voice prompt appears for in-scope clients. The step is done when the exported flow configuration contains no PSTN-based factor for these clients, and recovery paths use approved methods.

  7. Enable admin and login event logging

    The platform team turns on login and admin event recording in the realm and sends those events to the organization's log store, which is the source an assessor will sample. Confirm that successful and failed sign-ins, authenticator enrollments, credential removals and administrative changes to flows and timeouts are all captured with a user, time and client identifier. Where metrics are needed for monitoring, enable the metrics endpoint on the management interface and keep it off the public hostname. The step is done when a test sign-in, a failed attempt and an admin change each appear in the log store.

  8. Retest and record the configuration as evidence

    The security team repeats the sign-in, timeout, recovery and admin tests against the final configuration, including a test from outside the system boundary and a test of a privileged account. They compare the results with the scope recorded in the first step and log any deviations with an owner and a fix. The realm configuration export, flow definitions, timeout values and test results are stored together as the evidence package. The sequence is complete when every in-scope client passes the retest and the evidence package is reviewed by the compliance owner.

How an AAL2 login flows through Keycloak

The flow starts in the browser, which reaches Keycloak through the reverse proxy on the public hostname. Keycloak runs a password factor first, then a WebAuthn or passkey factor, and the session timeout checks apply to the resulting session. Each sign-in and failure is written to the event log, and the admin console sits behind a separate hostname that the public path never reaches. When you review this path, confirm that each factor is enforced by the authentication flow, that the idle and maximum session values are set on the realm and clients, and that admin traffic cannot be routed through the public hostname.

Browser sign-in path through Keycloak, with the separate admin boundary.

Evidence Keycloak produces for an SP 800-63B review

An assessor testing Keycloak against NIST SP 800-63B-4 will ask what the settings were, who changed them, and what users actually did at sign-in. The cards below cover the configuration exports, flow definitions, credential records, event logs, metrics and change history that answer those questions, and how to keep each one under version control with dated retention.

Realm and client session settings

Export the realm and client session values as configuration, including SSO Session Idle, SSO Session Max, and the Client Session Idle and Max values on each relying party. Check that client values are shorter than the realm values, since that is how the overall reauthentication and inactivity limits for AAL2 and AAL3 are enforced per application. Store each export with a date so you can show the timeouts in force on any given day, and confirm the exact field names against the current administration guide.

Keycloak server administration guide

Authentication flows and required factors

Export the browser and direct grant flows, including the conditions and required or alternative execution levels that decide when WebAuthn, OTP or a password is demanded. An assessor will compare these definitions with your AAL2 and AAL3 design, so each flow should map to a named assurance level and be linked to the clients it protects. Keep the exported flow files in Git with a pull request history that shows who approved each change.

WebAuthn and passkey registration records

Registered authenticators are stored per user, and the records show which credential type a person enrolled and when. Use these to show that a phishing-resistant option was offered and that AAL3 users hold a cryptographic authenticator with a non-exportable private key, which you must confirm against the authenticator's documentation. Review registrations periodically against the user directory and document how removed or lost authenticators are revoked.

Admin and login event records

Enable login and admin event logging with a defined retention, so sign-in successes, failures, MFA challenges and administrative changes can be sampled by an assessor. Forward them to a central log platform outside the Keycloak host, because local stores can be altered or lost. Confirm which event types your version records by default, and test that a sample sign-in and an admin change both appear before the review.

Metrics exposed at /metrics

When Keycloak runs with metrics enabled, Prometheus-format data is served at /metrics on the management interface. Keep that endpoint off the public hostname, scrape it into a time-series store, and retain the series for the period your review covers. These figures show session counts and request behavior over time, which supports statements about enforcement, though they do not replace the event records for individual sign-ins.

Keycloak metrics guide

Configuration-as-code change records

Manage realm, flow and client definitions as code and treat each merge as a change record with an author, reviewer, date and ticket reference. This is the artifact that shows when a timeout or factor requirement changed and who approved it. Keep the repository and its tagged releases under your retention policy, and tag the version that was live during each review period so you can reproduce the configuration an assessor asks about.

Questions buyers ask about SP 800-63B and Keycloak

Does Keycloak alone get an application to AAL3?

No. Keycloak can enforce the parts of AAL3 that live in the identity provider, such as requiring a cryptographic authenticator with a non-exportable private key, short session limits and reauthentication, but AAL3 is a property of the whole authentication system. The authenticator hardware, how it is issued and bound to a user, the verifier configuration, and the session behavior of each relying application all have to meet SP 800-63B-4. Keycloak is one component of that system, and your assessor will review the full chain. Confirm the AAL3 requirements against the NIST SP 800-63B-4 final text and your own assessor's expectations before you scope the work.

What drives the effort for an AAL2 or AAL3 Keycloak setup?

Effort is driven mostly by three things. The first is the number of applications, because each client needs its own session idle and maximum values, its own authentication flow, and testing of re-login behavior. The second is authenticator hardware: whether users already hold security keys or passkey-capable devices, or whether you must select, procure and issue hardware for AAL3. The third is client session audit, meaning how much evidence you need that timeouts, step-up prompts and authenticator enrollments actually happened. Each application that uses a different login path adds test cases. Ask any provider to break its quote down by these three drivers.

How long does the configuration take, and what changes the timeline?

The timeline depends on the scope agreed in writing, so no fixed duration applies to every environment. Realm-level settings are quick to change, but the work that takes time is testing: confirming that each client's timeouts are shorter than the realm values, that WebAuthn or passkey enrollment works for real users, and that fallback paths do not reintroduce SMS codes. Other schedule drivers include change approval windows, hardware delivery, and whether the identity owners can sign off on policy decisions. Ask for a milestone plan with named dependencies rather than a single number.

What does the client need to provide for this work?

You need three groups of people and one set of decisions. Identity owners must decide which assurance level each user population and application requires, and which authenticators are acceptable. Application owners must confirm how each app handles sessions, reauthentication and logout, since Keycloak timeouts only reach an application that honors them. Security and procurement teams must choose authenticator hardware for any AAL3 population and agree on enrollment and recovery procedures. Sign-off on the access model and an inventory of applications should come before the build starts.

Can our own team configure this without a partner?

Yes, many teams can configure the Keycloak settings themselves, provided they have engineers who know the Keycloak server administration guide and can test each application. The points where teams most often need outside review are the mapping of NIST requirements to concrete settings, the verification evidence an assessor will request, and the test of each relying application's session behavior. Decide early which of these you will own. A fixed-scope engagement with DeployOpen would cover the configuration, documentation and verification you agree in writing.

Does SMS or voice count as a phishing-resistant option?

No. SP 800-63B-4 restricts the use of the public switched telephone network, including SMS and voice, for out-of-band verification, so SMS codes should not be the phishing-resistant option you offer at AAL2. A phishing-resistant option such as WebAuthn or passkeys must be available, and SMS can remain only where the standard permits it and you have documented the decision. Check how your Keycloak OTP and recovery flows are ordered, because a user who can fall back to SMS may bypass the stronger option. Review the NIST SP 800-63B-4 guidance for the exact restrictions.

What does DeployOpen not do for SP 800-63B compliance?

DeployOpen does not issue audit reports, attestations or certifications. We plan, configure, test and document Keycloak so your compliance and security teams can show how the system aligns with SP 800-63B-4, but a conformity or compliance decision comes from your assessor or the relevant authority. We do not guarantee that an assessment will pass. The evidence we prepare supports that review; it does not replace it. Ask any provider, including us, to state in writing exactly which deliverables are included and which decisions remain with you.

How DeployOpen scopes and delivers SP 800-63B configuration and evidence

DeployOpen plans, builds and documents self-hosted Keycloak inside your own infrastructure, so the authenticator assurance settings for AAL2 and AAL3 can be reviewed by your security and compliance teams. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Map each application and user group to a target assurance level, with AAL2 and AAL3 cases listed separately.
  • Confirm which phishing-resistant options will be offered at AAL2 and which authenticators are permitted at AAL3.
  • Record the realm and client session timeouts, the SMS and voice methods being retired, and the owners who approve each setting.

How we build

  • Configure WebAuthn and passkey flows in the realm and check that the login pages offer a phishing-resistant option.
  • Set SSO session idle and max values, plus client session values shorter than the realm values, to match the reauthentication and inactivity targets.
  • Test authentication paths, reauthentication prompts and timeout behavior with a documented test plan before cutover.

How we hand over

  • Deliver a configuration record that maps each Keycloak setting to the SP 800-63B-4 requirement it supports.
  • Document the authenticator enrollment, recovery and removal procedures your help desk and administrators will follow.
  • Provide the admin and login event logging setup so your assessors can sample authentication events from Keycloak.

How we support

  • Review the configuration after each Keycloak upgrade, since release notes can change defaults and authentication behavior.
  • Offer ongoing support, upgrades and continuous testing as a retainer, priced from the written scope.
  • Retest timeout and authenticator changes when your applications, identity providers or assurance targets change.

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.