RE: OAuth2 M2M Token Endpoint 500 Server Error
I am attempting to implement the OAuth2 Client Credentials Flow aka Machine to Machine.
I found this thread on the slack but the trail went cold.
I set up an integration record, took down the application ID and the certificate ID and used this code (with the application ID as the client ID /’iss’ and the certificate ID as the ‘kid’). To incrementally test the process, I ran get or incomplete post requests on the token endpoint as suggested in the slack thread. They return 4XX errors and show up in the login audit log.
However, when I submit what I think should be a fully formed request I get a 500 – server error response, and the request does not appear in the audit log to provide additional details.
Any help would be appreciated.
{‘error’: ‘server_error’}
I was using the ‘Application ID’ instead of the only-shown-once Client ID upon integration record creation. After resetting my integration record and using the Client ID as the ‘iss’ parameter I was able to receive an access token back.
Glad you got it sorted!
