Single Sign On: users.isLoggedIn

Description

Returns whether the user is currently logged into the SWL system. 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

Example response - user logged in

<?xml version="1.0"?>
<response status="ok" time="Mon, 25 May 2009 20:31:34 -0500" p="0.044039964675903">
   <isLoggedIn count="1">
       <sso_isLoggedIn>
           <isLoggedIn><![CDATA[true]]></isLoggedIn>
       </sso_isLoggedIn>
   </isLoggedIn>
</response>

Example response - user NOT logged in

<?xml version="1.0"?>
<response status="ok" time="Mon, 25 May 2009 20:31:34 -0500" p="0.044039964675903">
   <isLoggedIn count="1">
       <sso_isLoggedIn>
           <isLoggedIn><![CDATA[false]]></isLoggedIn>
       </sso_isLoggedIn>
   </isLoggedIn>
</response>