After generating the client_id succesfully through the ASM API, the following error is occuring when trying to create the new Access Token as instructed in the ASM documentation, eg:
curl -X POST "https://api.asm.ca.com/v3/oauth2/token" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials&client_id=hYlUMFbgPVG6R0FlyIuxsnSbEMVt5HEmzdF52m9KX%2BU%3D&client_secret=CzkfkZMFv%2FXkC5NA%2BGfRIBC2WlMSA9zFnmYpkMlggSI%3D"
"error_description": "Either the client_id does not exist or the client_secret is incorrect"
In order to resolve this problem please try the following:
- URL encode the client_id and secret_id. You can use below online tool to do so:
- Then, pass the client_id and secret_id in the URL encoded format to the curl command
Create a New Access Token and a Refresh Token From the Client Credentials