IDCS REST API call unauthorized
Summary
Getting unauthorized error from REST API callContent
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:
0