Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save celsoagra/c6efb038e1242fbee67b8b0f323d01c2 to your computer and use it in GitHub Desktop.
Save celsoagra/c6efb038e1242fbee67b8b0f323d01c2 to your computer and use it in GitHub Desktop.
Get Keycloak access token via curl and pretty print it with python
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"
@celsoagra
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment