I’m a very new okta service.
I played around postman collections to get the access_token.
I believe the following endpoint is to get the access_token,
endpoint: {{url}}/oauth2/default/v1/token
request: POST
Body:
{
grant_type: authorization_code,
redirect_uri: http%3A%2F%2Flocalhost%3A9999,
code: {{code}}
}
Authentication:
{
Username: {{clientId}},
Password: {{clientSecret}}
}
I’ve no idea what to pass it to code parameter.
Later I found an endpoint to get the code,
endpoint: {{url}}/oauth2/v1/authorize?client_id={{clientId}}&response_type=code&response_mode=query&scope={{scopes}}&redirect_uri={{redirectUri}}&state={{state}}&nonce={{nonce}}
Again I’m confused in the state and nonce parameters.
Can someone help me here?
Thanks in advance.