oauth2-client-demo/scripts/get_refresh_token.sh

10 lines
472 B
Bash
Raw Normal View History

2020-03-03 05:36:58 +00:00
curl -X POST https://visibility.amp.cisco.com/iroh/oauth2/token \
--header "Accept: application/json" \
--header "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" \
--header "User-Agent: ob-http" \
--header "Authorization: Basic <BASE64 ENCODING OF CLIENT_ID:CLIENT_SECRET >" \
-d "code=<CODE JWT RETURNED FROM CTR>" \
-d "redirect_uri=https://localhost:4443/callback" \
-d "scope=admin" \
-d "grant_type=authorization_code"