Post

6 followers Follow
0
Avatar

API login with SSO

The docs show how to log in to the API with username and password passed but I haven't found a way to do it when SSO is enabled on the account.

curl -d '{userName:"user",password:"****"}' https://api2.clarizen.com/v2.0/services/authentication/login

Does anyone have an example of sending a SSO session cookie to the login endpoint or to any endpoint (because I shouldn't need to login again).

Justin Garrison Answered

Official comment

Avatar

Hi Rony,

If the setting that Bobby mentioned is enabled, I think you should be able to use API same as if SSO was not enabled. Authentication can be achieved by using ApiKey (generated in user details screen >> integration settings) or Session (generated by using a username and a password via the authentication/Login endpoint).

I hope this helps.

Roland

Roland Pumputis
Comment actions Permalink

Please sign in to leave a comment.

3 comments

0
Avatar

Hello Justin,

 

You will need to make sure "Enable API Access" is enabled in the federated authentication setting:

Bobby Benigno 0 votes
Comment actions Permalink
0
Avatar

@Justin Garrison. Were you able to resolve this ?  I am trying to understand the setup for API using SSO. 

Rony Thomas 0 votes
Comment actions Permalink