Skip to content

Instantly share code, notes, and snippets.

@phacman
Created November 12, 2023 14:59
Show Gist options
  • Save phacman/bd288c7abac1d3fc1694b7e191e27e4c to your computer and use it in GitHub Desktop.
Save phacman/bd288c7abac1d3fc1694b7e191e27e4c to your computer and use it in GitHub Desktop.
Standard keycloak payload structure example
{
"exp": 1673171296,
"iat": 1673170996,
"jti": "d58f5dc8-fd8f-462b-8a19-716f8f83985b",
"iss": "http:\\/\\/localhost:6080\\/auth\\/realms\\/something",
"aud": "account",
"sub": "36fa0f91-f94d-4a0c-afed-6b7d952e47da",
"typ": "Bearer",
"azp": "something",
"session_state": "2a88c258-f73a-4103-b862-e1fbd8f4e04e",
"acr": "1",
"allowed-origins": [
"http:\\/\\/localhost:6080"
],
"realm_access": {
"roles": [
"offline_access",
"default-roles",
"uma_authorization"
]
},
"resource_access": {
"account": {
"roles": [
"manage-account",
"manage-account-links",
"view-profile"
]
}
},
"scope": "email profile",
"sid": "2a88c258-f73a-4103-b862-e1fbd8f4e04e",
"email_verified": true,
"name": "Something Name",
"preferred_username": "username",
"given_name": "Given Name",
"family_name": "Family Name",
"email": "some@thing.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment