Getting 401 error using authorization code grant flow

Hitting 401 unauthorized error, when using authorization code grant flow for custom web application which we are creating.

Below are the configuration done at our end.

  1. created new OAuth Client under API management. Select Authorization Code as grant type, set custom redirect URL and scope set to sp:scopes:all
  2. Got Authorize end point and oauth token endpoint are using /oauth/info
  3. Following this link - Authentication | SailPoint Developer Community , to test authorization code flow.
  4. Steps 1 to 5 worked, but hitting 401 error for step 6, when trying to get access token using authorization code obtained in the previous step.

Looking for help from folks who implemented this flow.

Many thanks in advance.

mostly likely recheck authorization or have invalid access token. Also check Bearer is appended before the start of access token in the authorization header

Step 6 worked, when I included client_secret in the post call to get access token. But SailPoint documentation didnt include client_secret

Seems like it’s fixed ?

yes, after setting client_secret in the post call to get access token.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.