Beta

Create a tenant

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

Reading provider metadata

The photo service's configuration document lists its endpoints, its keys and what it can do for clients that ask. This lesson reads it entry by entry from the collage app's side, and then looks at how a relying party uses a refreshed copy without letting it weaken any check.

Endpoints and keys

The collage app's developer now has the photo service's configuration document open in full. Some of it repeats what the photo service already publishes for OAuth clients. The rest exists because the photo service is also an OpenID Provider, and those are the entries a relying party reads most closely.

A few entries are left out here, including the grant types and the endpoints for pushed requests and revocation that the full document also lists:

{
  "issuer": "https://auth.photos.example",
  "authorization_endpoint": "https://auth.photos.example/authorize",
  "token_endpoint": "https://auth.photos.example/token",
  "userinfo_endpoint": "https://auth.photos.example/userinfo",
  "jwks_uri": "https://auth.photos.example/jwks",
  "end_session_endpoint": "https://auth.photos.example/logout",
  "scopes_supported": ["openid", "profile", "email", "offline_access",
                       "photos.read", "photos.write", "photos.delete"],
  "response_types_supported": ["code"],
  "subject_types_supported": ["public", "pairwise"],
  "id_token_signing_alg_values_supported": ["RS256", "ES256"],
  "claims_supported": ["sub", "name", "given_name", "family_name", "email",
                       "email_verified", "picture", "locale", "updated_at"],
  "claims_parameter_supported": true,
  "code_challenge_methods_supported": ["S256"],
  "authorization_response_iss_parameter_supported": true
}

Six entries are URLs. OpenID Connect Discovery requires some of them and leaves others to the provider:

The address entries in the photo service's document, and what the collage app does with each
EntryStatusWhat the collage app uses it for
issuerRequiredThe exact name compared in this document and in every ID token.
authorization_endpointRequiredWhere Ava's browser goes with the authentication request.
token_endpointRequired, except at a provider that offers only the implicit flowWhere the collage app exchanges the code for an ID token.
jwks_uriRequiredThe key set used to check ID token signatures.
userinfo_endpointRecommendedAn endpoint that answers an access token with claims about its user, which The UserInfo endpoint covers.
end_session_endpointDefined by RP-Initiated Logout, for providers that support itWhere the collage app can send Ava's browser to end her session at the photo service, which RP-initiated logout covers.

OAuth has the same kind of document for authorization servers that don't sign anyone in, called authorization server metadata. There, only the issuer and the response types are always required. Any relying party may need to check an ID token's signature, so OpenID Connect also requires jwks_uri, and it adds two required capability lists of its own, for subject types and ID token signing algorithms.

Every address must use HTTPS, and the collage app uses each one exactly as written. Nothing requires the endpoints to share the issuer's host, and some providers serve their key set or token endpoint from a different one, so the collage app takes every address from the document rather than assembling it from the issuer.

The key set at jwks_uri holds more than the collage app needs. It contains the RSA key photos-rs-2026-09, which signs ID tokens with RS256, and the EC key photos-2026-09, which signs the photo service's JWT access tokens with ES256. The collage app picks the key named by an ID token's kid and uses it only with the algorithm it accepts for ID tokens, as Signing keys and rotation explained. The set contains public keys only. Discovery forbids private and symmetric keys in it.

Advertised capabilities

The entries ending in _supported describe what the provider can do. Read with sign-in in mind, they say:

  • scopes_supported names openid, which every OpenID Provider must support. Here it also lists profile and email, which ask for groups of claims, and offline_access, which asks for a refresh token. A provider may leave some scopes out of the list, so a missing scope is a question for its documentation rather than proof that the scope does not exist.
  • response_types_supported is required, and the photo service lists only code. Its ID tokens always come from the token endpoint. Values such as id_token or code id_token would mean ID tokens delivered through the browser, an older style of integration that Response types, response modes, and older flows describes.
  • subject_types_supported is required. A public subject is the same sub for every client; a pairwise subject is a different one for each client, so two applications can't match up their users by comparing sub values. The photo service can do either. Public and pairwise subject identifiers compares the two in depth.
  • id_token_signing_alg_values_supported is required and must include RS256, the default every relying party can count on. The photo service can also sign ID tokens with ES256 for clients that ask for it.
  • claims_supported lists claims the provider may be able to supply. It is not a promise to release any of them to a particular client, and it may not be complete.
  • claims_parameter_supported says the provider accepts the claims request parameter, which lets a client ask for individual claims by name rather than for a scope's whole group. Scopes and the claims parameter shows how.

The last two entries come from OAuth specifications that OpenID Providers use as well. code_challenge_methods_supported tells the collage app that PKCE with S256 works here. authorization_response_iss_parameter_supported promises that every authorization response, including a sign-in callback, carries iss, the check against mixed-up providers from Correlating requests and responses.

Missing entries have meanings of their own. A list with no values is left out rather than sent empty, a missing true-or-false entry such as claims_parameter_supported means false, and a few lists have defaults. Missing grant types, for example, default to the authorization code and implicit grants, which is one reason the photo service's full document lists its grants rather than leaving them out.

None of these lists describe the collage app. They describe what the photo service can do for clients that ask. ES256 appears among the ID token algorithms, but the collage app's registration uses RS256, so an ID token for photo-collage signed with ES256 is rejected even though the provider supports it. Pairwise subjects appear too, but the collage app's registration asks for public ones, so its sub for Ava is user-2048. The registration, not the metadata, decides which of the provider's options apply to a client, and Registering a relying party looks at those choices.

The document is also public. Anyone can fetch it, including someone looking for an endpoint to probe. That is not a reason to hide it: everything in it is information the provider's documentation would publish anyway, and the provider's defenses have to hold whether or not an attacker has read the list.

Using metadata safely

Metadata makes the collage app's configuration shorter. It should not make the collage app's rules weaker, and three habits keep it that way.

First, the document never widens what the collage app accepts. Suppose a refreshed copy listed none or HS256 among the ID token algorithms. Nothing would change for the collage app, whose allowlist comes from its registration. A library that chose the algorithm by reading the provider's list, or accepted anything on it, would let one line in a document undo a check from Validating an ID token.

Second, a missing entry does not switch off a protection the collage app relies on. If the photo service's document stopped listing code_challenge_methods_supported, OAuth's metadata rules would read that as no PKCE support. A relying party that responded by quietly dropping PKCE would sign people in with less protection from that moment on, because of one missing line. The collage app keeps its own expectations instead. It goes on sending PKCE, as it would go on requiring iss if that promise vanished too, and it raises the change with its operators.

Third, a refreshed copy is compared with the last one, not simply absorbed. Most refreshes change nothing. The photo service's key rotations happen inside the key set, at the same jwks_uri, rather than in this document. A copy that names a different issuer is not a change at all: it fails the checks in Provider discovery and is discarded. A few changes deserve a person's attention even when the document passes, such as a different jwks_uri or token endpoint, especially on a new host, or a security feature that disappears.

Changes that make the collage app stricter, such as a provider beginning to promise iss, are safe to adopt. Changes that would make it looser wait for someone to decide, and until someone does, the collage app keeps using its last accepted copy.

What the refresh brings

Algorithms
none or HS256 added
PKCE
code_challenge_methods_supported missing
Key set
jwks_uri on a new host
iss
Begins to promise iss
Issuer
A different issuer

What the collage app does

  • Nothing changes: its allowlist comes from its registration
  • Goes on sending PKCE and raises the change with its operators
  • Waits for someone to decide
  • Safe to adopt
  • Discarded: it fails the checks in Provider discovery

Only stricter changes are adopted on their own

Until someone decides, the collage app keeps using its last accepted copy.

Changes a refreshed copy of the photo service's document might bring, beside what the collage app does with each. Only a change that makes it stricter is adopted on its own.

Check your understanding

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

The photo service lists RS256 and ES256 in id_token_signing_alg_values_supported, and the collage app's registration uses RS256. An ID token for photo-collage arrives signed with ES256 by a key in the photo service's key set. What should happen? 1 of 3

Choose one answer.

After a scheduled refresh, the photo service's document no longer lists code_challenge_methods_supported or authorization_response_iss_parameter_supported. What should the collage app do? 2 of 3

Choose one answer.

A relying party builds the token endpoint by adding /token to the issuer. Another provider's document lists its token_endpoint on a different host from its issuer. What should the relying party do? 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