Primavera Cloud Preflight

Step-by-step check of the OAuth + REST chain. Each red light tells you exactly which gate is closed and how to open it.

Not yet — see failed checks below
Each failed step has a "Fix" hint that says exactly what to do.
5 passed 1 failed 1 skipped
1. Environment variables
PASS
OPC_BASE_URL, OPC_CLIENT_ID, OPC_CLIENT_SECRET all present.
2. Token endpoint reachable
PASS
DNS + TCP OK for idcs-0bf1d9eb95b44e05b1b3e4f9044b75e4.identity.oraclecloud.com:443
3. OAuth token issued
PASS
Token acquired (expires in 3600s).
4. Scope accepted
PASS
IDCS honored scope: client_credentials (OPC_SCOPE env var) → 'http://primavera-us2.oraclecloud.com/api'.
5. REST API reachable
PASS
DNS + TCP OK for primavera-us2.oraclecloud.com:443
6. Allow-access gate open
FAIL
Token was valid but Primavera Cloud rejected the call (HTTP 401).
Fix: In Primavera Cloud: Main Menu → Global Admin → Privacy & Security → Security tab → API and Gateway → check 'Allow access'. For the demo set Users: All and IP addresses: All, then Save. (Older UI: Application Settings → Boundary Security → 'Allow API and Gateway Access'.) If 'Allow access' is ALREADY on (Users: All, IP: All) and you STILL get 401, the token is issued but not AUTHORIZED. Most likely fix: in the OCI Console (Identity & Security → Domains → your domain → Integrated Applications → open the OAuth app) grant the app the Primavera REST API 'App Role'. A client-credentials token authenticates as the app itself, so without an app role granting API access Primavera rejects it at the application level. Secondary causes: the Allow-access change can take several minutes to propagate, and some tenants also require the app to be tied to a Primavera user that has REST API access.
Currently configured (env)
  • OPC_BASE_URL: https://primavera-us2.oraclecloud.com/api/restapi
  • OPC_TOKEN_URL: https://idcs-0bf1d9eb95b44e05b1b3e4f9044b75e4.identity.oraclecloud.com/oauth2/v1/token
  • OPC_CLIENT_ID: 7fe12ede01d94909b56848039a1fc3bf
  • OPC_CLIENT_SECRET: ••• set
  • P6_CONNECTION_TYPE: opc