IDCS REST API call unauthorized
SummaryGetting unauthorized error from REST API call
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 \
I used the access token in another curl command calling a REST API command to get users.
-X GET \
-H "Content-Type:application/scim+json" \