We've also posed this question to support, but as it's an urgent issue we wanted to get the community's input as well. Additionally, I'm sure other users have stumbled across this problem, so if we get an answer from support we'll cross-post it here.
The Requirement: Allow Telligent Community 6.0 to be localized for anonymous users.
The Challenge: This is problematic since, by default, all anonymous users share one user profile ("Anonymous"). Changing the language for this user changes the language for all users.
The Approach: To mitigate this, we have multiple anonymous users, each with a different language set (e.g., "Anonymous_fr") and each set to IsAnonymous in the cs_Users table. We have a module that fires on UserKnown to set the CSContext.Current.User property to this localized profile.
The Problem: This approach works perfectly, except for REST API calls. REST API calls (such as commenting on a blog post) work fine for "Anonymous", but fail for our other anonymous users (e.g., "Anonymous_fr"). My guess is that this is an issue with the Authorization Code.
Questions:
- Has anyone used this approach successfully with Telligent Community 6?
- Is there an alternate way we should be setting the user profile?
- Is there an approach to setting the Authorization-Code/AuthorizationCookie?
- Any further insight into anonymous authorization against the REST API?
Note: We do not want to change every factory default widget that performs a REST API call to include the standard authorization headers. Ideally, we want to piggy back off the same technique used out-of-the-box with the Authorization-Code/AuthorizationCookie.
Jeremy