Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

How to use api/login service when using SSO authorization

itinjic
New Contributor III
New Contributor III

In the staging environment I used api/login to get the access token, in that environment is normal Saviynt authentication. When I try to use this API on a production environment this is not possible because SSO authentication is used (SAML SSO).

How to get an access token in this case and is it possible to turn off SSO authentication on certain API endpoints as in this case api/login ?

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

Refer : https://forums.saviynt.com/t5/saviynt-knowledge-base/how-to-troubleshoot-401-unauthorized-error-from... 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Manu269
All-Star
All-Star

@itinjic please refer this post :Solved: Creating API Service User while SSO is enabled - Saviynt Forums - 61877

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

rushikeshvartak
All-Star
All-Star

Follow below steps 

  • Login with SSO with admin access 
  • Create new API user
  • Set password from Admin functions
  • from Admin - webservice Admin Config --> Generate token 
  • copy access token

rushikeshvartak_0-1705468366175.png

 

  • Open postman hit  update user api to set below flags

https://documenter.getpostman.com/view/23973797/2s9Ykhh4VH#5718ae10-293e-40a7-94d8-3a996ca161b4

  • rushikeshvartak_1-1705468403269.png

     

  •  

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Yes, I have already done this, this approach works but now I have to make changes in the code (in the scripts that call API). The "issue" with this is that the access token is valid for 3600 sec and that  logic must be created to refresh the token.

Token expires  after 8 hrs .

You can create api user and use same 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.