IAM glossary
What is Claim?
A single piece of information inside a token, such as sub (who), iss (who issued it), aud (for whom) or exp (until when). In SAML the equivalent is an attribute.
How it works
A claim is a single statement inside a token, written as a name and a value: "email": "anna@example.com". Some names are standard and short: iss (who issued it), sub (who it is about), aud (who it is for), exp (when it expires), iat (when it was issued).
Other claims add information: name, email, roles, groups, tenant, authentication method (amr), authentication level (acr). The receiver trusts a claim only as much as it trusts the issuer and the signature: a claim is a statement, not a proof.
A simple example
An ID token contains "sub": "248289761001", "email": "anna@example.com", "email_verified": true and "amr": ["pwd", "otp"]. The app learns that Anna’s email is verified and that she used a password plus a one-time code. It uses sub, not the email, as her stable identifier, because emails can change.
Common mistakes
- Using the email as a unique key: it can change or be reused by someone else.
- Putting sensitive data in claims: anyone holding the token can read them.
- Trusting custom claims like
role: adminwithout checking who issued the token.