Skip to content

Instantly share code, notes, and snippets.

@humbertodosreis
Created June 3, 2020 22:04
Show Gist options
  • Save humbertodosreis/c24ec11042c6f2d19d874e46257e5bbc to your computer and use it in GitHub Desktop.
Save humbertodosreis/c24ec11042c6f2d19d874e46257e5bbc to your computer and use it in GitHub Desktop.
Request user info
curl -X GET \
http://localhost:8180/auth/realms/sso/protocol/openid-connect/userinfo \
-H "Authorization: Bearer TOKEN" | jq '.'
# response
{
"seller": "seller@seller.com",
"sub": "f:5e0b46cc-c7df-42ed-9727-6334cc080e59:8582812",
"email_verified": true,
"name": "Humberto Reis",
"preferred_username": "user",
"given_name": "Fulano",
"family_name": "da Silva",
"email": "hello@world.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment