# Submitting language setting via SSO

**URL:** https://meta.discourse.org/t/submitting-language-setting-via-sso/83467
**Category:** Self-hosting
**Created:** [March 21, 2018, 9:22am UTC](https://meta.discourse.org/t/submitting-language-setting-via-sso/83467 "2018-03-21T09:22:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sbec](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@sbec](https://meta.discourse.org/u/sbec)
#### Post date: [March 21, 2018, 9:22am UTC](https://meta.discourse.org/t/submitting-language-setting-via-sso/83467/1 "2018-03-21T09:22:46Z")

</div>

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

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [March 21, 2018, 9:33am UTC](https://meta.discourse.org/t/submitting-language-setting-via-sso/83467/2 "2018-03-21T09:33:44Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![sbec](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@sbec](https://meta.discourse.org/u/sbec)
#### Post date: [March 21, 2018, 9:50am UTC](https://meta.discourse.org/t/submitting-language-setting-via-sso/83467/3 "2018-03-21T09:50:17Z")

</div>

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

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [March 21, 2018, 9:53am UTC](https://meta.discourse.org/t/submitting-language-setting-via-sso/83467/4 "2018-03-21T09:53:38Z")

</div>

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>
