10 lines
472 B
Bash
10 lines
472 B
Bash
|
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"
|