Skip to content

Instantly share code, notes, and snippets.

@bhumphrey
Last active November 23, 2016 14:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhumphrey/9429d2f9fc709293bfac900967833bb9 to your computer and use it in GitHub Desktop.
Save bhumphrey/9429d2f9fc709293bfac900967833bb9 to your computer and use it in GitHub Desktop.
BASIC_AUTH = replace-with-real-value
ACCESS_TOKEN = `curl --silent -H "Authorization:Basic $BASIC_AUTH" \
-X POST \
-F username=admin \
-F password=admin \
-F grant_type=password \
http://localhost:9999/oauth/token | jq -r '.access_token'`
curl -H "Authorization: Bearer $ACCESS_TOKEN" \
http://localhost:9005/management/env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment