Unable to use Client Credentials API

Hello,

I’m trying to get a token using authentication API /oauth/token endpoint. I am unable to get one even with using provided examples (with Postman) as well as using Authentication API Debugger Extensions Machine to Machine OAuth2 Client Credentials button. I get following response:

{
    "error": "server_error",
    "error_description": "Script generated an unhandled asynchronous exception."
}

In Logs I can find more informative error message:

“type”: “feccft”,
“description”: “ExtensibilityImplementationError on credentials-exchange: Script generated an unhandled asynchronous exception.”,

Any idea?

Do you have any Hooks enabled (check under Dashboard > Hooks), especially for the client credentials exchange? Maybe that’s causing the issue. Or if not, any Rules that might get in the way?

You are absolutely right. Someone created a hook while I was at summer vacation and disabling it made the endpoint work correctly. Thank you!

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.