Single Sign On: users.login

Description

Log in a user on the SWL platform. This is part of the SWL SSO offering.

Required parameters for all SSO calls

  • timestamp : The UNIX timestamp for the current time.
  • user_id : The user ID of the specified user.
  • hash : A MD5 hash containing, in this order, the SSO secret provided at configuration time, the user ID of the specified user, a MD5 hash of the password of the specified user, and the UNIX timestamp.

Additional required parameters for this call

  • None

Optional parameters

  • None

Example response

The response, if successful, will return the SSO token to you. This token must be stored in the SSO cookie for the user to continue to be logged in on the SWL community. Any failure will be returned as a failed call as described in Handling the response.

<?xml version="1.0"?>
<response status="ok" time="Mon, 25 May 2009 20:27:00 -0500" p="0.046658039093018">
   <login count="1">
       <sso_login>
           <token><![CDATA[2ee77a968d0f64e76d4eb860e95d8565]]></token>
       </sso_login>
   </login>
</response>