Skip to Main Content

Java SE (Java Platform, Standard Edition)

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 a REST API call to /token endpoint

User_Y59QJJan 24 2022 — edited Jan 24 2022

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>
Comments
Post Details
Added on Jan 24 2022
0 comments
406 views