Last active
December 1, 2016 14:38
-
-
Save dwallraff/b21c85b1adf5fc2750e33fa5bb765ac0 to your computer and use it in GitHub Desktop.
Commands to get uaac access token and us in curl
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
#!/usr/bin/env bash | |
token="$(uaac context | awk '/^ *access_token\: *([a-zA-Z0-9.\/+\-_]+) *$/ {print $2}' -)" | |
curl -H"Authorization: bearer $token" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment