Skip to content

Instantly share code, notes, and snippets.

@humbertodosreis
Created June 3, 2020 22:03
Show Gist options
  • Save humbertodosreis/ee67931f82b294bb1019e64e6978986e to your computer and use it in GitHub Desktop.
Save humbertodosreis/ee67931f82b294bb1019e64e6978986e to your computer and use it in GitHub Desktop.
Request access token
curl -X POST \
http://localhost:8180/auth/realms/sso/protocol/openid-connect/token \
-H "Content-Type='application/x-www-form-urlencoded'" \
-d "grant_type=authorization_code" \
-d "client_id=test" \
-d "client_secret=CLIENT_SECRET" \
-d "code=AUTHORIZATION_CODE" \
-d "redirect_uri=https://example.com/" \
-d "scope=openid cpf" | jq '.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment