4.1.2 Step 1: Generate Access Token

Generate the Access Token for your Profitability and Balance Sheet Management Cloud Service by:

  1. Submitting a RESTful API Post Request to your Oracle IDCS environment as defined in the Identity Cloud Service User Guide. For information, see OAuth Runtime Tokens REST Endpoints.

Note that a sample code snippet has been provided below using cURL to generate the access token for Basic Authorization and assign it to a variable for use within a script:

access_token=`curl -s --insecure -H "Authorization: Basic $ENCODED" -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" --request POST $IDCS_URL -d "grant_type=password&username=$USERNAME&password=$PASSWORD&scope=urn:opc:idm:__myscopes__ urn:opc:resource:expiry=9153600" | python3 -c "import sys, json; print(json.load(sys.stdin)['access_token'])"`