Generate the Access Token
Generate the Access Token to invoke the REST APIs in the authentication process.
To generate the Access Token, add the Client ID, Client Secret, User Name, and Password using cURL commands in the CLI tool. The following is an example:
First generates basic base64 encoded authorization token using below command
echo -n "<tenant_oauth_app_client_id>:<tenant_oauth_app_client_secret>" | base64 -w 0
Use the output of above to generate bearer token
curl -H "Authorization: Basic <base64 encoded
tenant_oauth_app_client_id:tenant_oauth_app_client_secret>" -H "Content-Type:
application/x-www-form-urlencoded;charset=UTF-8" --request POST https://<iam_tenant>/oauth2/v1/token
-d "grant_type=client_credentials&scope=urn:opc:idm:__myscopes__"
For more information, see REST API for Oracle Identity Cloud Service