Skip to Main Content

LiveLabs & Workshops

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle IDCS - How to authenticate /token REST API endpoint

User_Y59QJJan 24 2022 — edited Jan 24 2022

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

Comments
Post Details
Added on Jan 24 2022
1 comment
1,224 views