Beta

Create a tenant

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

OpenID Provider responsibilities

Every check the collage app makes on an ID token trusts the photo service to have told the truth. An OpenID provider owes its relying parties honest authentication, careful claim release, subjects that never move, and accurate metadata and logout signals.

What relying parties count on

All domains, identifiers, and tokens in these examples are fictional.

The collage app compares the ID token's aud with photo-collage, its nonce with demo-nonce-3, and its signature with a key from the photo service's key set. Each comparison assumes the photo service put the right value there. If the photo service copied the wrong nonce into tokens, or gave Ava's subject identifier to someone else, the collage app's checks would still pass, and the collage app would sign in the wrong person.

Those values are the responsibility of the team on the other side, the one that runs the photo service's OpenID Provider. Much of that team's work is shared with any authorization server. The checks it makes on every request, such as exact redirect URI matching, PKCE, and client authentication, are the ones Redirects and authorization codes, Proof Key for Code Exchange (PKCE), and Client authentication methods explained. Authorization server responsibilities, in the OAuth lessons on implementation and operations, covers running the service around those checks: the client registry, recorded approvals, issuing and storing codes, tokens, and signing keys, metadata, revocation, and token lifetimes. OpenID Connect adds promises about who is signing in and how.

Almost every check a relying party makes has a matching duty at the provider:

The collage app checksThe photo service must
iss is exactly https://auth.photos.exampleUse one exact issuer string in its discovery document and in every token, with no variation in case, path, or trailing slash.
The signature, with a key from jwks_uriPublish each key before signing with it, protect the private keys, and keep a retired key published until nothing it signed is still valid.
aud contains photo-collageAddress each ID token to the client the sign-in was for.
nonce is demo-nonce-3Copy the nonce from the request exactly, whenever the request had one.
auth_time and acrReport when Ava actually authenticated and what was actually achieved.
iss and sub identify Ava's collage accountNever change a subject or give it to anyone else.
UserInfo returns the same subReturn the same subject for the same person and client from every endpoint.

What the collage app can establish

Signed by the photo service key
Established by the signature
aud is photo-collage
Compared, trusts the provider
nonce is the one it sent
Compared, trusts the provider
auth_time is the real sign-in
Trusts the provider
sub never reassigned
Trusts the provider

Each comparison assumes the photo service put the right value there.

The signature proves who signed the ID token. Every other value the collage app compares is only as true as the photo service made it.

The issuer is the root of all of it. Relying parties store it with every account link, so changing it, even by adding a trailing slash, makes every existing customer look new. A provider that moves to new infrastructure keeps the issuer string, and one that hosts several organizations can give each its own stable issuer.

Signing keys follow the publisher's side of Storing and using keys. The photo service signs ID tokens with RS256, the default algorithm for ID tokens and one every provider's metadata must list, under the key photos-rs-2026-09. Before it signs anything with photos-rs-2027-01, it publishes the new key long enough for relying parties' cached key sets to include it. Afterward it keeps the old key published until no unexpired token signed with it remains. The private keys never leave the hardware or service that signs with them, and the team has rehearsed withdrawing a leaked key.

Authenticating and releasing claims

A relying party can ask for a fresh sign-in or a particular kind of authentication, but only the provider can deliver it. OpenID Connect lists features every provider must implement, and most concern this part of its work: honoring prompt=none and prompt=login, enforcing max_age, returning auth_time when it is requested, and accepting acr_values, display, and ui_locales without error.

Supporting a parameter means doing what it says. With prompt=none, the photo service shows no page at all. It completes the sign-in silently or answers with login_required or another of the errors from Authentication errors. With max_age=300, it compares the time of Ava's last authentication with the current time, asks her to sign in again if more than five minutes have passed, and puts the new auth_time in the ID token. A provider that ignored max_age but reported the real auth_time would at least let a careful relying party notice. One that wrote the current time into auth_time without asking her anything would defeat the check completely.

The same honesty applies to acr and amr. They describe what happened, not what was requested. If Ava signed in with a password alone, the token does not claim a context that needs a second factor because the relying party asked for one. When the provider cannot meet a requirement, it reports the context it did achieve, or fails the request when the relying party marked the requirement as essential, and the relying party decides what to do next.

Releasing claims is the other half. The photo service releases what the scopes and any claims request asked for, only to the client that asked, and only with Ava's agreement where its policy requires it. Its consent screen names the collage app and says plainly what will be shared. It remembers her decision, and lets her review and withdraw it later. It sets email_verified to true only when it verified that address itself, under rules it can describe to relying parties. None of this can be checked from the relying party's side, which is why choosing whom to trust matters.

One detail of the response is easy to miss. After Ava submits her password on the photo service's sign-in form, the provider sends her browser to the collage app's callback with a 302 redirect or, better, a 303. A 307 would tell her browser to repeat the POST, form fields included, to the callback, which would hand her photo service password to the relying party.

Keeping subjects stable

Ava's collage account is linked to user-2048 at https://auth.photos.example. The collage app stored that pair because the specification promises that a subject is unique within its issuer and never reassigned. The events that threaten that promise are mostly routine:

  • Changing an email address or username. The subject must not be derived from either. Otherwise Ava would become a stranger to the collage app on the day she changed her email address.
  • Closing an account. A closed account's subject is retired, not given to the next new account. Otherwise the next person to sign up could inherit Ava's saved collages and poster orders.
  • Migrating systems. Moving accounts to a new user store, or merging another service's accounts into this one, carries existing subjects across unchanged, along with the issuer.
  • Pairwise identifiers. A provider that gives each relying party a different subject must calculate it the same way every time for the same person and sector, including after a migration.

Subjects have a shape as well. Each is at most 255 ASCII characters and is compared exactly, case included, so user-2048 and User-2048 would be different accounts. A subject is not secret, and with public identifiers every relying party Ava uses receives the same one, so it should not contain her email address, her name, or anything else about her.

Metadata, logout, and monitoring

The discovery document is a promise too. Relying parties read it to decide how to talk to the provider, so it lists only what the provider actually does: the response types, signing algorithms, claims, and endpoints it supports. A document that advertises backchannel_logout_supported before back-channel logout works leads relying parties into failures they cannot see. The jwks_uri it names stays reachable and fast, because relying parties fetch it at the moment someone is waiting to sign in.

Logout depends on the provider remembering where Ava signed in. When Ava's photo service session ends, the relying parties registered for front-channel or back-channel logout can end their own sessions only if the provider notifies them, naming the person by sub, the session by the sid it put in their ID tokens, or both. Back-channel notifications travel from the provider's servers, so the photo service can record each delivery, notice a relying party that does not answer, and retry or report the failure.

Finally, the provider watches itself. The useful signals are mostly rates: sign-in failures for each client, codes presented twice, back-channel deliveries that fail, and requests for the key set that suddenly multiply because a relying party stopped caching it. A rise in codes presented twice might be an attack or one relying party's retry bug. Either way, the provider can help only if its logs record the client, the step, and the error, and never tokens, codes, or passwords.

How would the collage app know that the photo service keeps these promises? Some it can see from outside. A real sign-in shows the issuer, audience and nonce that came back for that request, and the discovery document shows whether back-channel logout is advertised. Others it cannot see at all: how the private keys are protected, or whether a subject will survive a migration the photo service has not yet planned. Trusting a provider includes trusting those, which is why its published practices and its certification, the subject of Conformance testing, matter to the relying parties that depend on it.

The photo service's own tests check the same promises from the inside, including the quiet ones: that closing an account and creating a new one with the same email address produces a new subject, that a sign-in answered from an existing session keeps its original auth_time, and that a requested acr is never echoed back unless it was achieved.

Check your understanding

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

The photo service closes an old account and later gives its subject identifier to a new sign-up. What can go wrong at the collage app? 1 of 3

Choose one answer.

The collage app sends max_age=300. The photo service does not ask Ava to sign in again and writes the current time into auth_time. Why is this worse than ignoring max_age and reporting the real time? 2 of 3

Choose one answer.

After Ava submits her password on the photo service's sign-in form, the provider redirects her browser to the collage app's callback with a 307. What goes wrong? 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