Forum Stats

  • 3,854,309 Users
  • 2,264,351 Discussions
  • 7,905,642 Comments

Discussions

Oracle IDCS - How to authenticate a REST API call to /token endpoint

User_Y59QJ
User_Y59QJ Member Posts: 4 Green Ribbon
edited Jan 24, 2022 1:57AM in Abstract Window Toolkit (AWT)

I need to retrieve an access token using the Client Credentials flow in Oracle IDCS. When I call the /token endpoint I'm getting an unauthorized error.

    <H1>Unauthorized</H1>

    Proper authorization is required for this area. Either your browser does not perform authorization, or your

    authorization has failed.

How do I authenticate the /token API correctly?

What I've tried so far using Postman:

POST ``https://idcs-*.identity.oraclecloud.com/oauth2/v2/token``

Body -
grant_type = client_credentials
client_id = *
client_secret = *

Header - Authorization: Basic <base64encoded client_Id:client_secret>