Authn.tech
Home
  • SAML 2.0
  • OAuth 2.0
  • OIDC
  • JWT / JOSE
  • WebAuthn / Passkey
  • MFA / TOTP
  • LDAP
  • China Platforms SSO
  • All Tools
  • JWT Decode
  • JWT Sign
  • JWK Gen
  • JWK → PEM
  • PEM → JWK
  • PKCE Gen
  • OIDC Discovery
  • Scan-Login Demo
  • TOTP
  • WebAuthn
  • SAML Codec
  • SAML Metadata
  • SAML Response
  • Feishu SAML
  • X.509 Cert
  • PEM Inspect
  • Base64URL
  • LDAP Filter
  • Overview & Roles
  • OIDC Mock
  • SAML Mock
  • Mail Server
  • LDAP Directory
  • OIDC Login Demo
  • SAML Login Demo
  • WeChat Scan-Login
  • WeCom Scan-Login
  • 简体中文
  • English
  • Deutsch
GitHub
Home
  • SAML 2.0
  • OAuth 2.0
  • OIDC
  • JWT / JOSE
  • WebAuthn / Passkey
  • MFA / TOTP
  • LDAP
  • China Platforms SSO
  • All Tools
  • JWT Decode
  • JWT Sign
  • JWK Gen
  • JWK → PEM
  • PEM → JWK
  • PKCE Gen
  • OIDC Discovery
  • Scan-Login Demo
  • TOTP
  • WebAuthn
  • SAML Codec
  • SAML Metadata
  • SAML Response
  • Feishu SAML
  • X.509 Cert
  • PEM Inspect
  • Base64URL
  • LDAP Filter
  • Overview & Roles
  • OIDC Mock
  • SAML Mock
  • Mail Server
  • LDAP Directory
  • OIDC Login Demo
  • SAML Login Demo
  • WeChat Scan-Login
  • WeCom Scan-Login
  • 简体中文
  • English
  • Deutsch
GitHub
  • JWT / JOSE

    • JWT Overview
    • Core Concepts
    • Parameters & Claims Reference

Parameters & Claims Reference

Registered Claims (RFC 7519 §4.1)

These are the standard payload fields reserved by RFC 7519. They are all optional, but higher-level specifications such as OAuth2 / OIDC make them required as needed.

ClaimFull NameMeaning
issIssuerIssuer identifier, usually the HTTPS URL of the AS/OP
subSubjectThe subject (the entity the token describes), unique within the scope of iss
audAudienceThe intended recipient(s) of the token; may be a string or an array
expExpiration TimeExpiration time (Unix seconds); must be rejected after this
nbfNot BeforeTime it becomes valid (Unix seconds); must be rejected before this
iatIssued AtIssue time (Unix seconds)
jtiJWT IDUnique token identifier, usable for replay protection / blacklisting

Time claims are all in Unix seconds

exp / nbf / iat are all seconds since 1970-01-01 UTC (not milliseconds). When validating, allow a small clock skew, typically ≤ 300 seconds.

Common Header Fields

FieldMeaning
algSignature/encryption algorithm (see table below)
typToken type: JWT; RFC 9068 access tokens use at+jwt; logout tokens use logout+jwt
kidKey ID, used with JWKS to locate the verification public key
ctyContent type, used for nested JWTs
jku / x5c / x5tA URL pointing to a key / a certificate chain / a certificate thumbprint (accepting an external jku is risky and requires caution)

alg Values

JWS Signature Algorithms (RFC 7518 §3)

algDescriptionKey Type
HS256 / HS384 / HS512HMAC + SHA-2Symmetric shared secret
RS256 / RS384 / RS512RSASSA-PKCS1-v1_5 + SHA-2RSA public/private key
PS256 / PS384 / PS512RSASSA-PSS + SHA-2RSA public/private key
ES256 / ES384 / ES512ECDSA + SHA-2EC public/private key
EdDSAEd25519 / Ed448 (RFC 8037)OKP public/private key
noneNo signature—

Never accept none

In production you must maintain an alg allowlist and reject none, and also pin the expected algorithm family to prevent RS256→HS256 confusion attacks. See Core Concepts · Three Fatal Verification Pitfalls.

Common JWE Encryption Algorithms (RFC 7518, when confidentiality is needed)

PurposeExample Values
Key management (alg)RSA-OAEP, ECDH-ES, A256KW
Content encryption (enc)A128GCM, A256GCM, A256CBC-HS512

Base64URL

Each segment of a JWT is encoded with Base64URL (RFC 4648 §5), which differs from standard Base64 as follows:

  • + → -, / → _
  • Trailing = padding is removed

The goal is to let the token be safely placed in URLs and HTTP headers. Convert between them with the Base64URL Encoder/Decoder.

Related RFC Index

RFCTitle
RFC 7515JSON Web Signature (JWS)
RFC 7516JSON Web Encryption (JWE)
RFC 7517JSON Web Key (JWK)
RFC 7518JSON Web Algorithms (JWA)
RFC 7519JSON Web Token (JWT)
RFC 7662OAuth 2.0 Token Introspection
RFC 8037CFRG-curve usage in JOSE (EdDSA, etc.)
RFC 9068JWT Profile for OAuth 2.0 Access Tokens

Related Tools

  • JWT Decoder — decoding and verification
  • JWT Signer — build test tokens
  • JWK Generator · JWK → PEM · PEM → JWK
  • Base64URL Encoder/Decoder
Last updated: 7/9/26, 6:21 PM
Contributors: linux, Claude Opus 4.8
Prev
Core Concepts