Beta

Create a tenant

A new tenant starts with its own users, OAuth settings, audit history and logs. You are its first Tenant Admin.

Authentication policy and SSO

An authentication policy decides which evidence each situation needs: which methods count, how recent a sign-in must be, and who a stricter rule covers. With single sign-on, that decision has to travel from the identity provider to each application, which then checks it for itself.

Choosing the evidence

Lab Photos' identity provider signs people in to more than one application: the photo app where Ava Archer keeps her albums, the print shop where she orders prints, and the support tool its own staff use. Ava may sign in with a password, an authenticator app or a passkey. Browsing her albums might need an ordinary sign-in, while Ben Okafor, on the help desk, exporting a customer's account data might need a passkey sign-in from the last few minutes. An authentication policy sets the evidence required for each situation.

Offering a method does not mean accepting it everywhere. Lab Photos might accept an authenticator-app code for Ava's albums while requiring a verified passkey for anything done in the support tool, applying the assurance levels from Authenticator assurance levels. The policy must also cover how people enroll methods and recover access, as Designing account recovery showed: if a text message could reset Ben's passkey, his account would be only as strong as that text message.

Configuring a policy

When Lab Photos' administrators set a policy, they decide which methods people can use and when a stronger or more recent check is required. Each choice affects people who already have accounts, not only new ones.

Questions an authentication policy needs to answer
ChoiceExample consequence
Allowed methodsCan people enroll synced passkeys, security keys, authenticator apps, or other supported methods?
Required evidenceDoes an action require any accepted method, MFA, or phishing-resistant MFA?
ScopeWhich people, applications, roles, or actions does a rule cover?
Freshness and sessionsHow recent must authentication be, and when must a session be renewed or ended?
Enrollment and recoveryHow do people add replacements and recover access without bypassing the intended assurance?

A rule's scope is often a role. Lab Photos can ask everyone who holds a management role, such as Ben's help desk role, for a second step every time, while customers like Ava choose for themselves. Giving someone that role then changes what is enough for them at their next sign-in.

Suppose Lab Photos requires passkeys for its staff but has not given them a way to enroll one. The new rule would stop their work. Administrators need to see who a change affects, arrange enrollment or backup methods, and introduce the rule in a controlled order, often with a deadline that gives everyone time to enroll before the rule is enforced. If rules overlap, the service needs a defined way to decide which one applies.

Fresh and stronger authentication

Ben signed in with a passkey this morning, but exporting a customer's data requires a check performed in the last few minutes. The support tool asks Ben to sign in again. This is reauthentication. If Ben had signed in just now with a password but the export requires a passkey, the tool asks for stronger evidence. This is step-up authentication.

A request can need both: a fresh check with a stronger method. Issuing a new token from an existing session does not establish that Ben just authenticated, so the application needs trustworthy information about when and how the check occurred.

A policy can also respond to signals such as an unfamiliar device, an unusual location, or a sudden change of browser by asking for more evidence. This is often called risk-based or adaptive authentication. Those signals may shape the decision, but none of them proves something Ben knows, has, or is, so they never replace a factor the policy requires.

Carrying trust to an application

With single sign-on (SSO), which Trust across systems introduced, Ava signs in once at Lab Photos' identity provider and opens the print shop without entering credentials there again. The identity provider may reuse her existing session, or it may ask for a new check when the application's policy requires one.

OpenID Connect and SAML carry the authentication result from the identity provider to the application. Before creating its own session, the application validates that the result came from the expected provider, is meant for this application, is still valid, and belongs to the request it made.

In OpenID Connect, the ID token's auth_time claim tells the application when Ava authenticated, and its acr and amr claims, introduced with the assurance levels, describe the authentication context and methods, if Lab Photos and the application have agreed on their meaning. Some values have shared definitions: RFC 8176 lists common amr values, such as pwd for a password and hwk for a hardware-protected key, and an acr value may name an assurance level from a published framework such as NIST SP 800-63. The token's iat, its issue time, is not necessarily the time Ava signed in, and an absent method claim cannot be taken as proof of MFA.

{
  "auth_time": 1790553600,
  "acr": "urn:labphotos:example:phishing-resistant-mfa",
  "amr": ["hwk", "pin", "mfa"]
}

This fragment is illustrative, not a signed token. The amr values come from the RFC 8176 registry: hwk for a hardware-protected key, pin for the PIN that unlocked it and mfa because more than one factor was used. The acr value is Lab Photos' own name for a level, so the application needs a documented agreement about what it means. An application should expect only registered amr values or ones it has agreed with the provider, and never treat an unfamiliar value as proof of a method. The OpenID Connect lessons, starting with From delegated access to sign-in, follow the requests, claims and validation in detail.

After sign-in, each application can hold its own session. Ending Ava's identity-provider session does not automatically close every application's session, or take back tokens an application already holds.

Following a sensitive action

Ben opens the support tool through SSO and requests an export of a customer's account data. The support tool checks whether Ben currently holds a role that permits the export. It also checks whether the trusted sign-in result meets its requirements for method and recency.

Ben's session from this morning

Role permits export
Yes
amr
hwk, pin, mfa
auth_time
Three hours ago

Sent back to sign in again

Ben after a fresh sign-in

Role permits export
Yes
amr
hwk, pin, mfa
auth_time
A moment ago

Export allowed

No export role, fresh sign-in

Role permits export
No
amr
hwk, pin, mfa
auth_time
A moment ago

Refused: no export role

An absent method claim cannot be taken as proof of MFA.

The support tool checks permission, methods and sign-in time for each export. A fresh, strong sign-in still cannot stand in for the role.

If stronger or fresher evidence is needed, the tool sends Ben back to the identity provider for another check. When he returns, the tool validates the new result and checks its policy again. The support tool's API enforces those conditions even if a request bypasses the visible export button.

If Ben cancels, the identity provider cannot perform the required check, or the result omits required evidence, the export remains blocked. A successful passkey check also cannot grant export permission to someone whose role does not include it, or whose role was removed in the meantime.

The SSO in this lesson rests on decades of earlier designs. History of SSO follows how a sign-in at one service came to be trusted by others, from shared computers and Kerberos to SAML, OpenID Connect, and passkeys.

Check your understanding

Try these questions before moving on. If an answer isn't right, use the feedback and try again.

Ben signed in with MFA this morning. Exporting a customer's data requires fresh authentication. What must the support tool check? 1 of 3

Choose one answer.

A help desk agent whose role does not include exports completes a fresh passkey sign-in, then requests a customer export. What should happen? 2 of 3

Choose one answer.

Ava signs out of Lab Photos' identity provider, then returns to a print shop tab she opened through SSO. Her order page is still there. Why? 3 of 3

Choose one answer.

Try it in the Lab

We value your privacy

We use cookies and similar technologies to enhance your browsing experience, and analytics to understand our traffic. By clicking "Allow all", you consent to optional analytics. Cookie Policy

Learn identity