diff --git a/scripts/get_refresh_token.sh b/scripts/get_refresh_token.sh new file mode 100755 index 0000000..406b63b --- /dev/null +++ b/scripts/get_refresh_token.sh @@ -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 " \ + -d "code=" \ + -d "redirect_uri=https://localhost:4443/callback" \ + -d "scope=admin" \ + -d "grant_type=authorization_code" diff --git a/scripts/test_access_token.sh b/scripts/test_access_token.sh new file mode 100755 index 0000000..4229530 --- /dev/null +++ b/scripts/test_access_token.sh @@ -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 " \ \ No newline at end of file