I'm trying to call the /token endpoint in Oracle IDCS to retrieve an access token, however it's returning an unauthorized error. What do I need to authenticate correctly?
<H1>Unauthorized</H1>
Proper authorization is required for this area. Either your browser does not perform authorization, or your
authorization has failed.
What I've tried so far in Postman:
POST https://idcs-*.identity.oraclecloud.com/oauth2/v2/token
Body:
grant_type = client_credentials
client_id = *
client_secret = *
Header -
Authorization: Basic <base4encoded client_id:client_secret>
Documentation source:
https://docs.oracle.com/en/cloud/paas/identity-cloud/rest-api/op-oauth2-v1-token-post.html