[Paid] Set locale for SSO users

AI-generated summary

The discussion revolves around implementing a feature to set the locale for SSO users in Discourse based on a ‘locale’ parameter in the SSO query string. sebastien explains that the SSO platform supports multiple languages and that the locale is used during user creation to set the language preference, with defaults applied if the parameter is missing or invalid. Once a user is created, their locale is not overridden. The user is using Discourse 2.0.0 beta and hosts the platform on AWS. joebuhlig confirms the request is straightforward and offers to provide a quote via email, which sebastien acknowledges by taking the conversation offline.

Hi Guys,

Our current SSO platform has the ability to add a local parameter to the query string we send to discourse.

Current we support the following languages “en”, “zh-Hans” [Simplified chinese], “zh-Hant” [Traditional chinese], “ja”, “ko”, “id”, “vi”, “ar”, “th”.
Note: This is not an exhaustive list and we will keep on adding new languages.

Flow:
1/ When a user logs in (SSO) for the first time (=user creation), we set Discourse language based on the specified “locale” parameter.

  • If this parameter is missing or invalid, we log a warning in discourse log and keep default language.
  • If requested language is missing from discourse, we also log a warning in discourse log and keep default language.

2/ Once a user created, we do not override the locale setting.

Technical:
1/ The “locale” query string parameter is embedded within the sso payload
2/ We own the server hosting Discourse (they are in AWS)
2/ We are using the latest version of Discourse 2.0.0 beta (updated weekly)

How much would it cost to develop this plugin?

Thank you,
Seb

3 Likes

Just to be clear. You need to set the user locale preference for new users based on a parameter already being sent to Discourse?

Sounds like a simple add. Would you sending me an email at joe@joebuhlig.com and I can get you a quote and other details?

4 Likes

Taking that offline with Joe :slight_smile:

6 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.