asp1
(Priya Ashokan)
August 14, 2025, 7:58am
1
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.
created new OAuth Client under API management. Select Authorization Code as grant type, set custom redirect URL and scope set to sp:scopes:all
Got Authorize end point and oauth token endpoint are using /oauth/info
Following this link - Authentication | SailPoint Developer Community , to test authorization code flow.
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
asp1
(Priya Ashokan)
August 15, 2025, 2:18am
3
Step 6 worked, when I included client_secret in the post call to get access token. But SailPoint documentation didnt include client_secret
Priya Ashokan:
nt_secret in the p
Seems like it’s fixed ?
asp1
(Priya Ashokan)
August 18, 2025, 10:05am
5
yes, after setting client_secret in the post call to get access token.
system
(system)
Closed
October 17, 2025, 10:06am
6
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.