-
-
Save napramirez/780e6f890441ca0e9f53b2ac3da20e9f to your computer and use it in GitHub Desktop.
Get Keycloak access token via curl and pretty print it with python
This file contains 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=YOUR_KEYCLOAK_CLIENT' \ | |
-d 'username=YOUR_USERNAME' \ | |
-d 'password=YOUR_PASSWORD' \ | |
-d 'grant_type=password' \ | |
'https://YOUR_KEYCLOAK_SERVER_HOST/auth/realms/YOUR_REALM/protocol/openid-connect/token' \ | |
| python -m json.tool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment