After generating the client_id succesfully through the ASM API, the following error is occurring when trying to create the new Access Token as instructed in the ASM documentation, e.g.:
curl -X POST "https:/example.com/v3/oauth2/token" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials&client_id=<client id>&client_secret=<client secret>"
"error": "invalid_client"
"error_description": "Either the client_id does not exist or the client_secret is incorrect"
Any release
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:
https://www.urlencoder.org/
- 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
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/app-synthetic-monitor/SaaS/using/using-swagger-in-dx-asm/Swagger-API-Examples.html