You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

IDCS REST API call unauthorized

edited Jun 10, 2020 9:14PM in Identity and Access Management 2 comments

Summary

Getting unauthorized error from REST API call

Content

I'm trying to get started with the IDCS REST API. I created a confidential app, granted Identity Domain Adminstrator, recorded the Client ID and Client Secret. I ran a curl command to get an access token.

curl -i \
-H "Authorization: Basic <base64-encoded Client ID:Secret>" \
-H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" \
--request POST https://<idcsUrl>/oauth2/v1/token \
-d "grant_type=client_credentials&scope=urn:opc:idm:__myscopes__" 

I used the access token in another curl command calling a REST API command to get users.

curl \
-X GET \
-H "Content-Type:application/scim+json" \

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!