Home > Software design >  okta trying to retrieve token in postman
okta trying to retrieve token in postman

Time:12-09

Using this enter image description here

CodePudding user response:

I tried to reproduce the same in my environment and got the same error like below:

enter image description here

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:

enter image description here

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

enter image description here

I created an Azure HTTP Trigger1, and selected the HTTP methods like below:

enter image description here

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:****

enter image description here

  • Related