Forum Discussion

scripps_l's avatar
scripps_l
Helper
13 years ago

Clarification in SSOClient class

Hi Am trying to make a POC for SSO using lithium SSOClient class, as per the document it says,

 

LithiumSSOClient ssoClient = LithiumSSOClient.getInstance(keyPath,
“companyx”, “.companyx.com”, “serverid”);

 

I have Keypath, but what are the other parameters it is not clear in SSO document.

Can someone please explain what are the other parameters.

 

Thanks in advance.

 

 

  • ChristineC's avatar
    ChristineC
    Khoros Alumni (Retired)

    Here's more info on that method

     

    public static LithiumSSOClient getInstance
    (java.lang.String keyPath,
    java.lang.String clientId,
    java.lang.String clientDomain,
    java.lang.String serverId)

     

    clientId: The unique id for your community. This should've been provided to you along with information on your stage server


    clientDomain: The base domain for your community. This is used when creating the SSO cookie. Please see the section on "Configuring domains for testing"


    serverId: Any Unique string that is unique to each instance of the SSO client. For example, this could be the ip of the system the API is on. However, if there are multiple instances running in that environment you'll need a more unique value such as ip and port