Layer 7 Access Management

Expand all | Collapse all

SSO using Web Services Authentication

Jump to Best Answer
  • 1.  SSO using Web Services Authentication

    Posted 01-11-2017 01:24 AM

    Hello All,

     

    Can anyone help me to understand how to achieve SSO using Web Services Authentication. 

     

    I have following queries. 

     

    1. How to achieve SSO using pure WebServices Authentication? i.e. SPS Java Agent. 

     

    For an example, as part of successful REST login event, Siteminder returns Login Response which contains SessionToken. Having this, how do we achieve SSO between multiple applications which uses only REST authentication.

     

    2. How to achieve SSO between standard web agent and web services sps java agent? 

     

    For an example, I have a normal web agent based application and I wanted to achieve SSO with an application uses REST authentication. Applicable reverse vise scenario like SSO between Rest auth with standard web agent. 

     

    Thanks,

    Veera



  • 2.  Re: SSO using Web Services Authentication

    Posted 01-11-2017 05:22 PM

    Hi Veera,

     

    Just like any normal agent, the Auth/AZ web service authentication call also returns SMSESSION cookie.

    To be able to SSO with other SPS Java agent or normal agent, you will need to just send this SMSESSION cookie in the request header.

     

    Regards,

    Ujwol 



  • 3.  Re: SSO using Web Services Authentication

    Posted 01-11-2017 11:22 PM

    Thanks Ujwal. From the below login Success response, <sessionToken> part contains session info. I believe it represent SMSESSION.. Is this correct? 

     

    Just to be clear: On the SSO part, for an example, application 1 uses REST authentication and SMSESSION send in xml response as part of login success. If an application app1 wants to SSO with another application app2, it can use the SMSESSION in request header. Here, how will application maintain the logged in user session? for an example normal web agent sets the cookie in browser, in web services authentication it is all about xml response and application has to capture the cookie and store it somewhere. Can you help me to understand this better? like where the cookie can be stored and how is it re-used to achieve SSO calls? 

     

    Similarly, app3 which is normal webagent and it need SSO with REST web services based application app1 & app2. In this scenario, if user has a valid smsession generated by the normal web agent, it needs to be passed in header request to achieve the SSO with web services application. 

     

    Is this correct?

     

    1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    2. <loginResponse>
    3.   <message>Authentication Successful</message>
    4.   <resultCode>LOGIN_SUCCESS</resultCode>
    5.   <sessionToken>jz/8Lvg6ifFZ3DLVD+dLUfy4XoAbS6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GCTIHvEOKr19UcPQUp74yyTHEfyvAOzzxHo1zswovgdXwS1SP8DYKL/6JNnr7w</sessionToken>
    6.   <authenticationResponses>
    7.     <response>
    8.       <name>SM_UNIVERSALID</name>
    9.       <value>abc123</value>
    10.     </response>
    11.     <response>
    12.       <name>SMSSOZONE</name>
    13.       <value>SM</value>
    14.     </response>
    15.     <response>
    16.       <name>SM_AUTHTYPE</name>
    17.       <value>Basic</value>
    18.     </response>
    19.     <response>
    20.       <name>SM_REALM</name>
    21.       <value>AuthTest</value>
    22.     </response>
    23.     <response>
    24.       <name>SM_REALMOID</name>
    25.       <value>06-52c04608-884e-10f2-a24a-843bdb4e0000</value>
    26.     </response>
    27.     <response>
    28.       <name>SM_AUTHREASON</name>
    29.       <value>0</value>
    30.     </response>
    31.     <response>
    32.       <name>SM_TRANSACTIONID</name>
    33.       <value>0000000000000000000000000a235b0e-5f29-58770139-0fb0-088063a9</value>
    34.     </response>
    35.   </authenticationResponses>
    36. </loginResponse>


  • 4.  Re: SSO using Web Services Authentication
    Best Answer

    Posted 01-12-2017 10:33 PM

    Hi Veera,

     

    Your understanding is correct.

    The "sessionToken" returned from Auth/AZ web service call is nothing but SMSESSION cookie.

     

    So, if you are going to do SSO with another SPS Auth/AZ java agent, you will basically need to send this token instead of username and password.

    Similarly, if you are going to do SSO with another normal web agent, you will need to create an SMSESSION cookie with this sessionToken value and send this along with your request.

     

    Here is how I tested this to verify :

     

    1. First using SPS Auth/AZ web service and using username and password create the sessionToken

     

     

    2. Next, for any consequent request, you can send this token and perform SSO instead of sending username and password again :

     

    3. Next, to test the SSO with the normal web agent, in chrome browser using "EditThisCookie" plugin I manually created SMSESSION cookie using the sessionToken value returned from SPS Auth/AZ authentication call :

    4. Then, in the same browser session , I was able to access the protected resource without any challenge. This confirms I was able to perform SSO to the normal web agent protected resource using the sessionToken generated by SPS Auth/AZ web service :

     

    Hope this clarifies your question.

     

    Cheers,

    Ujwol Shrestha

    Ujwol's Single Sign-On Blog 

     

     



  • 5.  Re: SSO using Web Services Authentication

    Posted 01-13-2017 05:59 AM

    Thanks Ujwol .. It helps a lot...