<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00008ObFdDCAVOkta Classic EngineAPI Access ManagementAnswered2023-10-06T17:08:57.000Z2022-11-19T20:44:55.000Z2022-11-26T19:28:02.000Z

GlebR.51616 (Customer) asked a question.

Is it possible to use the access token generated by the client credentials grant flow to call the userinfo endpoint

We have a service that calls userinfo which requires and access token. We tried generating an access token by using the token endpoint with grant type as client credentials and a custom scope but are receiving an error and here are parts of the message since I could not past the whole thing due to formatting restrictions

 

scope openid insufficient_scope The access token provided does not contain the required scopes

 

I've read that the client credentials grant does not contain an openid token so is not the right flow for creating a token that userinfo can use. Is that correct and are there other flows we can use that DO NOT require a separate redirect endpoint?


This question is closed.
Loading
Is it possible to use the access token generated by the client credentials grant flow to call the userinfo endpoint