Forum Discussion

scripps_l's avatar
scripps_l
Helper
13 years ago

SSO Clarification

Hey There, am trying to implement SSO

When i through the document it says I need to get a key .

 

// getInstance LithiumSSOClient class String keyPath = "C:\\usr\\local\\www\\webinf\\
lithium\\companyx.key";
LithiumSSOClient ssoClient = LithiumSSOClient.getInstance(keyPath,
“companyx”, “.companyx.com”, “serverid”);

 

where will that keyPath provided ? Do I get any key from Lithium upon registration of my community ? Please clarify.

also to use LithiumSSOClient  in java what are the jar files to be downloaded ?

Also to use this in localhost Do i need to request for domain alias change ?

 

Thanks in advance.


3 Replies

  • AdamN's avatar
    AdamN
    Khoros Oracle
    13 years ago

    Hi scripps_l,

     

    The SSO key and client Jar files are typically provided by the Lithium-appointed project manager during the launch process. If you're not yet a Lithium customer, I'd suggest contacting your sales representative to discuss further evaluating Lithium SSO.

     

    Regarding your last question, I'm not sure I quite follow what you're asking, but it's important to keep in mind that the community must be in the same domain that you're setting the SSO cookie in order for the Lithium application to read that cookie. This is typically accomplished by adding a CNAME record that maps a subdomain (ie. community.yourdomain.com) to your Lithium community instance. If that doesn't answer your question, can you please clarify?

     

    I hope this helps!

  • scripps_l's avatar
    scripps_l
    Helper
    13 years ago

    Thanks alot for reply, 

     

    Ok Lets say,

     

    If I am using my community login page in my local machine(localhost) and I want to use the same user info to form Lithium Token to pass to my Lithium testing demo site to pull in and out the information.

     

    as you stated abt the CNAME changes, Does the above point is not achievable.

     

    Please clarify.

  • AdamN's avatar
    AdamN
    Khoros Oracle
    13 years ago

    If a CNAME isn't feasible at this point, you could try using hosts file entries to acheive the desired result. The key thing to keep in mind is that the cookie has to be written in a domain that the community application can read. So if you're running your login page locally and don't already have a hostname setup for your local machine, you will likely need a hosts file entry for that as well.

     

    Also, if you're setting up a cname or hosts file entry for a Lithium demo site, there is some configuration that our technical operations team will need to do in order to ensure the requests get routed properly. I'd suggest speaking with your sales representative regarding getting that setup. Or if you have access to our case portal, you could file a case with our support team.