move scripts to scripts folder

This commit is contained in:
Leland Krych 2020-03-02 21:36:58 -08:00
parent 8c7e622f1d
commit 99a2b73640
2 changed files with 14 additions and 0 deletions

9
scripts/get_refresh_token.sh Executable file
View file

@ -0,0 +1,9 @@
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"

5
scripts/test_access_token.sh Executable file
View file

@ -0,0 +1,5 @@
curl -G https://visibility.amp.cisco.com/iroh/profile/whoami \
--header "Accept: application/json" \
--header "application/json; charset=UTF-8" \
--header "User-Agent: ob-http" \
--header "Authorization: Bearer <YOUR_ACCESS_TOKEN_HERE>" \