I’m trying to set up a new OAuth application and API in my Okta account. Following the guides posted here (Implement authorization by grant type | Okta Developer) and here (Create an authorization server | Okta Developer), I was able to create an application and authorization server.
Unfortunately, when testing, I’m receiving the following error:
. {“error”:“invalid_client”,“error_description”:“The client secret supplied for a confidential client is invalid.”}
The error would imply that my client_secret is incorrect. However, I copied the client id and secret from the application. In addition, I encoded the client ID and client secret appropriately ( echo client_id:client_secret | base64 ). Here’s the curl statement that I’m using for testing:
curl --request POST
–url {AUTH_SERVER}/v1/token
–header ‘accept: application/json’
–header ‘Authorization: Basic $AUTH’
–header ‘cache-control: no-cache’
–header ‘content-type: application/x-www-form-urlencoded’
–data ‘grant_type=client_credentials&scope=custom_scope+offline_access’
Any thoughts on what might be up?