CodePudding user response:
I tried to reproduce the same in my environment and got the same error like below:
The error "Invalid value for 'client_id' parameter" usually occurs if you are passing invalid Client_ID
value.
Make sure you are passing the values from the Okta Portal like below:
When I passed the correct values, I am able to generate the access token successfully using the below Parameters:
https://XXXX.okta.com/oauth2/default/v1/token
client_id:ClientId
client_secret:ClientSecret
grant_type:client_credentials
scope:scope
I created an Azure HTTP Trigger1, and selected the HTTP methods like below:
I am able to call the Azure Function Trigger successfully like below:
https://xxx.azurewebsites.net/api/HttpTrigger1
token:token
client_id:ClientID
client_secret:****