Skip to content

Instantly share code, notes, and snippets.

@dwallraff
Last active December 1, 2016 14:38
Show Gist options
  • Select an option

  • Save dwallraff/b21c85b1adf5fc2750e33fa5bb765ac0 to your computer and use it in GitHub Desktop.

Select an option

Save dwallraff/b21c85b1adf5fc2750e33fa5bb765ac0 to your computer and use it in GitHub Desktop.
Commands to get uaac access token and us in curl
#!/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