Forked from 4drianMatei/get_keycloak_access_token.sh
Created
September 29, 2018 12:39
-
-
Save celsoagra/c6efb038e1242fbee67b8b0f323d01c2 to your computer and use it in GitHub Desktop.
Get Keycloak access token via curl and pretty print it with python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl \ | |
-d "client_id=myclient" \ | |
-d "client_secret=40cc097b-2a57-4c17-b36a-8fdf3fc2d578" \ | |
-d "username=user" \ | |
-d "password=password" \ | |
-d "grant_type=password" \ | |
"http://localhost:8080/auth/realms/master/protocol/openid-connect/token" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
based on https://www.keycloak.org/docs/3.0/securing_apps/topics/oidc/oidc-generic.html