Beta

Create a tenant

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

Which provider facts to trust

Every validated ID token brings claims beyond the issuer and subject. A claim mapping, written down for each provider, gives each claim one job, keeps every claim away from authority the provider can't vouch for, and says when it runs, so a change to it is handled like any security setting.

A mapping gives each claim a job

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

The ID token from Ava's first mail sign-in in Adding social sign-in carried ten claims. The collage app used two of them, the issuer and the subject, to find account 8812. The rest arrived too, signed with the mail service's key, and they arrive with every sign-in through every button. A button that creates accounts has to do something with them: put a name on the new account, offer an address for order confirmations, perhaps unlock free shipping. Deciding which claim fills which field, and what each field is then allowed to decide, is configuration the collage app's team writes down for each provider.

Validation answers one question: did this provider make these statements, for the collage app, just now? It doesn't say what the app may use each statement for. Standard and custom claims and Claim stability and privacy covered what the claims mean: a name is whatever the account holder typed into their profile, and email_verified describes one check the provider made at some time. The collage app turns that understanding into a claim mapping in each provider's configuration entry. Here is the photo button's, which creates accounts:

Illustrative claim mapping for the photo button
Provider claimCollage app fieldWhat it may decide
iss and subSign-in identity rowWhich collage app account opens
email, when email_verified is trueOffered contact emailWhere confirmations go, once the app has confirmed the address itself
given_nameFirst name, at registrationHow the app greets the customer
family_nameLast name, at registrationHow orders and parcels are addressed
https://photos.example/claims/membershipNot storedFree shipping on this visit's orders
Any other claimNot storedNothing

Each row pairs a claim with a decision of a certain weight. Greeting Ava needs any name at all. Sending an order confirmation needs an address someone has checked, and the app checks it again itself before relying on it. Free shipping rests on the photo service's membership claim, because the photo service is the authority on its own memberships. The last row matters as much as the others: a claim the mapping does not name is not stored and decides nothing, so a provider that starts sending something new changes nothing at the collage app until someone agrees what it means and adds a row.

Each provider entry has its own mapping. The mail button's has no membership row, because the mail service knows nothing about photo plans, and if the mail service sent a claim called membership, it would mean something else. Changing one entry's mapping never changes how the other provider's claims are read.

No claim maps to authority

The collage app's support team signs in on the same page as customers, then opens a staff console where they can look up any customer's orders and issue refunds. Suppose a photo sign-in for a new account arrives with this:

Provider states:   email = [email protected], email_verified = true
App decision:    may this account issue refunds in the staff console?
Evidence needed:   a current staff role for this app account,
                   assigned in the collage app team's own records

The photo service once sent a link to that mailbox, and someone followed it. That person might be on the support team today. They might also have left last month without losing access to the mailbox, or be one of several people who read a shared one. The claim cannot tell those apart, and it was never meant to. Only the collage app's team knows whom it employs, so staff roles are assigned to app accounts in its own records and checked on every console request. That is why the mapping has no row that leads to a staff role, for any provider. The app can greet this account by the name the photo service sent and refuse it the console in the same minute, and those results do not contradict each other.

given_name

Mapped to
First name
May decide
How the app greets
When it runs
Once, at registration
If missing
Left empty to fill in
Staff console
Never

A greeting, nothing more

membership

Mapped to
Not stored
May decide
Free shipping this visit
When it runs
At each sign-in
If missing
Shipping is charged
Staff console
Never

The photo service is the authority

[email protected]

Mapped to
Offered contact email
May decide
Where confirmations go
When it runs
Once, at registration
If missing
No address offered
Staff console
Never

Verified, and still no refunds

Staff roles come only from the app's own records, checked on every console request.

Three claims and the job each mapping row gives them. A verified address can say where confirmations go, but no claim, verified or not, decides who may use the staff console.

The same holds for claims that look like authority. If the mail service started sending "groups": ["collage-admins"], nobody at the collage app agreed what that value means, and it does not become a staff role. Where a provider really is the authority, the mapping can say so deliberately: the team that Lantern Studio's own identity provider sends to Lantern's project portal can decide project access there, because Lantern runs that directory. Facts about the sign-in itself are mapped with the same care. If the console required a security key, an amr of pwd from the photo service would not meet that requirement, however normal a password is there.

A mapping also says what each claim must look like. The collage app reads only the claims its mapping names, checks that each has the expected type and length, and accepts only the values it has agreed to map. A claim value is data. The app never evaluates one as a rule, a query or a template.

When a mapping runs

The mapping table says when each row applies, and that timing decides how current a stored value can be. The names are copied once, at registration. The membership is read from each visit's ID token and never stored. Neither is wrong, but they behave differently over time.

A value copied at registration is a snapshot. If Ava changes her name at the photo service next year, the app keeps the old one until she edits it, or until the app decides to refresh its copies when updated_at moves forward, as Claim stability and privacy described. A value read at each sign-in is only as current as that sign-in. If Ava's plan lapses on Thursday and she signed in on Monday, Monday's token still says plus and its signature still verifies. So the mapping row for free shipping names the freshness it needs: this visit's sign-in, or a fresh check with the photo service at checkout.

Missing claims need a decision of their own, and the mapping records it. A token with no membership claim means the app doesn't know, and checkout charges for shipping rather than assuming the best. A token with no given_name leaves the first name empty on the registration page for the person to fill in, rather than borrowing another claim to fill the gap.

Changing a mapping

Because a mapping is configuration, administrators change it, and a change takes effect at the next sign-in that runs it. On 30 September at 16:55 UTC, an administrator editing the photo entry changes First name from given_name to family_name. Twenty minutes later, a new customer registers through the photo button, and her validated ID token says:

{
  "iss": "https://auth.photos.example",
  "sub": "user-5310",
  "aud": "photo-collage",
  "iat": 1790788500,
  "exp": 1790788800,
  "auth_time": 1790788488,
  "nonce": "demo-nonce-37",
  "given_name": "Yara",
  "family_name": "Haddad",
  "email": "[email protected]",
  "email_verified": true
}

The registration page offers First name Haddad and Last name Haddad. She accepts without looking closely, and the collage app creates account 9137. Every claim was valid and signed, and the app still recorded the wrong thing, because the mistake was in the job the app gave a claim, not in the claim.

The next morning, the administrator sets First name back to given_name, and the next new customer gets the right names. Account 9137 still says Haddad Haddad. The names were copied once, at registration, so a repaired mapping helps only accounts created after it. Fixing account 9137 is a separate step: Yara edits her name, or the app offers the photo service's current names at her next sign-in.

That next sign-in opens account 9137 as before, because the issuer and subject find it, not her name. Neither the mistake nor the repair changed what the account may do. It had no staff role before, during or after, because the mapping has no row that could give it one.

A mapping change deserves the care of any security setting. The collage app records every change with who made it and when, and labels each stored copy with the claim and the time it came from. When Yara's name looked wrong, those records kept apart the steps that could each have failed. The signature had validated, the account had been created rather than linked, and authorization had given it nothing, so the only step left to blame was the mapping, and its history showed who had edited it, twenty minutes before her sign-in. A test sign-in with a known account straight after the edit would have caught the mistake before any customer saw it.

Check your understanding

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

A photo sign-in for a new collage app account reports [email protected] with email_verified true. What decides whether this account may issue refunds in the staff console? 1 of 3

Choose one answer.

An administrator mapped First name to family_name on the photo button, and account 9137 was registered before the mapping was repaired. What is true after the repair? 2 of 3

Choose one answer.

The mail service starts sending a new claim, groups, with the value collage-admins. The collage app's mapping for the mail button has no row for it. What changes at the app? 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