Oracle Primavera Cloud (MOSC)

MOSC Banner

Issues with Getting Authentication to OPC and Running an API call

edited Jun 12, 2020 12:22PM in Oracle Primavera Cloud (MOSC)

I wanted to share some information on some issues I had getting a Bearer Token for OPC integrations and running my first call. When you run the call under OAuth Token Generator, Its asks for the URL that has the scope being an http url. This is going to be your Server URL that is the https server URL but you pass it through the scope as http. So if you are connecting to OPC this is what the URL should be: https://primavera.oraclecloud.com/primediscovery/apitoken/request?scope=http://primavera.oraclecloud.com/api

Once you pass the base64 bit encryption of your username and password you will get the authorization token and the Prime Tenant and Prime Identity App. You will need those values in your Header of your API including the Bearer token. So if you ran cURL and example would look like this:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center