Use CURL to obtain an OAuth access token
Use CURL to run the following OAuth ROPC command in a shell terminal to obtain an access token.
curl -k -v -X POST -H 'Content-type: application/x-www-form-urlencoded'
-d "client_id=mytestclient&scope=read&grant_type=password&username=testuser1&password=passw0rd"
https://<reverse_proxy_hostname>/mga/sps/oauth/oauth20/token
An example response is shown as follows:
{
"scope": "read",
"refresh_token": "MrnZ4j",
"token_type": "bearer",
"expires_in": 3599,
"access_token": "C57M09"
}