Submitting language setting via SSO

Hey,
we are thinking about using discourse with a SSO out of another, leading platform. User credentials will be transmitted via SSO. Questions is wether it is necessary to transmit the user’s language out of the leading platform or is this not necessary as discourse might pull this from the browser directly?

Thanks,
sbec

By default, Discourse will use the default locale you’ve configured.

If you’ve enabled the allow user locale setting, then users will be able to select another locale from their preferences page.

If you want to automatically set the the locale based on the browser’s language header, then enable the set locale from accept language header setting.

1 Like

Great, so these are setting a admin does and don’t refer to data that has to be transmitted via SSO?

Exactly. These are settings an admin does.

I don’t think we support setting the user’s locale via SSO but that’s only because we’ve never been asked to.

Here’s the list of attributes we support setting via SSO
https://github.com/discourse/discourse/blob/a23509cbf39843a690a141f50d301f20acca5351/lib/single_sign_on.rb#L2-L4

4 Likes