How to pass parameters to Lithium when doing SSO
We use Lithium SSO in our product and invoke LithiumSSOClient.writeLithiumCookie() to write the SSO Cookie. We pass some parameters to Lihtium when calling this method.
It's something like:
Map<String, String> chatParms = new HashMap<String, String>();
chatParms.put("profile.businessname", busName);
chatParms.put("profile.businessid", "" + busId);
chatParms.put("roles.grant", "DF_SSO_Role");
LithiumSSOClient.writeLithiumCookie(ssoId, login, loginUser.getEmail(), chatParms, request, response);
The customers of our product are business owners. Their businesses belong to different industries, such as dental, spa, vet...
Now we want to pass the industry parameter to lithium when writing SSO Cookie.
1. How can I pass the industry value to Lithium? Can I use chatParms.put("profile.industry", industry)?
2. If the parameter is passed to Lithium successfully, how can I get/use the value in community website? We want to show users the topics related to their industries.
3. We also use Lithium REST API in our product. Users can search for articles by using the URL like "http://community.ourwebsite.com/ourwebsite/restapi/vc/categories/id/ourwebsite-tkb/search/messages?q=email&restapi.response_style=view&restapi.format_detail=full_list_element".
We also want to get the results that are industry sensitive. Where should I add the industry parameter to the URL?
Thanks.