Skip to content

Instantly share code, notes, and snippets.

@dwallraff
Last active March 12, 2020 17:55
Show Gist options
  • Save dwallraff/873603b874076a12e1189b70cec59d7c to your computer and use it in GitHub Desktop.
Save dwallraff/873603b874076a12e1189b70cec59d7c to your computer and use it in GitHub Desktop.
get your 'precreated-client' bearer token from uaa when you have multiple contexts
cat ~/.uaac.yml | ruby -ryaml -rjson -e 'puts JSON.pretty_generate(YAML.load(ARGF))' | jq -r '.[].contexts[] | select(.client_id =="precreated-client") | .access_token'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment