Forum Stats

  • 3,839,099 Users
  • 2,262,455 Discussions
  • 7,900,863 Comments

Discussions

Oracle IDCS - How to authenticate /token REST API endpoint

User_Y59QJ
User_Y59QJ Member Posts: 4 Green Ribbon
edited Jan 24, 2022 8:51AM in OCI Security

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

Answers