oauth2-client-demo/scripts/get_refresh_token.sh
2020-03-02 21:36:58 -08:00

9 lines
472 B
Bash
Executable file

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"