Skip to main content

OIDC Scopes

JWTForge can populate common OIDC claims from the scope value. This is mainly useful in fake mode, where Faker generates realistic-looking user data.

{
"mode": "fake",
"body": {
"sub": "user123",
"scope": "openid profile email address phone"
}
}
POST /token
Request
{
"mode": "fake",
"body": {
"sub": "user123",
"scope": "openid profile email address phone"
}
}
Response
No response yet
Decoded token
No token yet

Scope Mapping

ScopeClaims IncludedExample Data
openidBase JWT claims such as sub, iss, aud, exp, iat, nbf, jtiBase claims are always present
profilename, given_name, family_name, middle_name, nickname, preferred_username, profile, picture, website, gender, birthdate, zoneinfo, locale, updated_atJane Smith, jane.smith, https://example.com/avatar.jpg
emailemail, email_verifiedjane.smith@example.com, true
addressaddress object with street_address, locality, region, postal_code, country{"street_address":"123 Main St","locality":"Anytown","region":"CA","postal_code":"12345","country":"US"}
phonephone_number, phone_number_verified+1-555-555-5555, true

Structured Request Example

{
"mode": "fake",
"response_type": "id_token token",
"body": {
"sub": "user123",
"scope": "openid profile email",
"nonce": "nonce-123"
}
}
POST /token
Request
{
"mode": "fake",
"response_type": "id_token token",
"body": {
"sub": "user123",
"scope": "openid profile email",
"nonce": "nonce-123"
}
}
Response
No response yet
Decoded token
No token yet

Notes

  • Scope-derived claims are generated only where JWTForge has scope logic for that claim family.
  • Explicit claims in body override generated defaults.
  • In non-fake modes, claims may be fuzzed, replaced with malicious values, or selected from grammar rules.