reuben
2 years agoNew Contributor
OAuth2 account - error 500 on authorization
I attempting to authorize an OAuth2 account using client credentials, but I'm getting the following error:
{"http_status_code": 500, "response_map": {"error_list": [{"message": "Request to token endpoint https://login.microsoftonline.com/<tenant id is here>/oauth2/v2.0/token failed for account \"/PWDePAMTest/shared/account for Graph API\" of type \"OAuth2 Account\""}]}}
Does anyone know what that means beyond internal server error?
I am able to do this fine through Postman using a pre-built collection from Microsoft. I just entered my clientid, client secret, and tenant id where applicable. The only thing I can think of is that I'm not sure how to set Client Authentication. That's set to Send client credentials in body in Postman. Does it need to be set in the account setup? If so, where would it go?
for client credentials, you'll need to put the scope in the "Token endpoint config" section, not the "Authorization endpoint config".