# \[Feature Request\] Support multiple domains for Google SSO

**URL:** <https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446>\
**Category:** Pritunl Zero\
**Tags:** pritunl-zero\
**Created:** [October 10, 2023, 9:00pm UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446 "2023-10-10T21:00:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliel.sardanons](https://forum.pritunl.com/user_avatar/forum.pritunl.com/eliel.sardanons/32/642_2.png) [@eliel.sardanons](https://forum.pritunl.com/u/eliel.sardanons)\
**Post date:** [October 10, 2023, 9:00pm UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446/1 "2023-10-10T21:00:41Z")

</div>

Currently, it’s not possible to add multiple domains when configuring Google SSO in Pritunl-Zero, unlike Pritunl where this feature is supported. A workaround is to configure multiple Google SSO providers for different domains. However, this approach breaks a valuable functionality: ‘Force fast user single sign-on login’.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [October 11, 2023, 12:05am UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446/2 "2023-10-11T00:05:43Z")

</div>

There’s much better support for multiple authentication provides in Pritunl Zero, you just need to scroll to the bottom and add an additional Google provider or any other provider. Each can have a label indicating which domain and provider it is. With Google it doesn’t matter which label the user selects at the login page, internally the domain is matched to the provider. You can also create two Google providers for each domain with the same label and it will show only one button. The fast login options should also support multiple Google providers with different domains, these would remove the button and immediately redirect the user to Google for authentication.

---

<div class="post-metadata">

**Author:** ![eliel.sardanons](https://forum.pritunl.com/user_avatar/forum.pritunl.com/eliel.sardanons/32/642_2.png) [@eliel.sardanons](https://forum.pritunl.com/u/eliel.sardanons)\
**Post date:** [October 11, 2023, 2:28pm UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446/3 "2023-10-11T14:28:59Z")

</div>

I have already done so and it is not working as expected: added 2 Google providers with the same _Label_ “Google SSO Login” and different _Domains_. Enabled **Fast single sign-on login** and **Force fast user single sign-on login** and it is still presenting to the user one login button named “Google SSO Login” and not redirecting automatically to Google.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [October 12, 2023, 3:52am UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446/4 "2023-10-12T03:52:08Z")

</div>

I did check the fast login and there is currently a limitation with that when using 2 Google providers. This may change in the future.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [October 12, 2023, 3:57am UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446/5 "2023-10-12T03:57:00Z")

</div>

I have developed a fix for this and in the next release the force fast login will work if all providers are Google.

---

<div class="post-metadata">

**Author:** ![eliel.sardanons](https://forum.pritunl.com/user_avatar/forum.pritunl.com/eliel.sardanons/32/642_2.png) [@eliel.sardanons](https://forum.pritunl.com/u/eliel.sardanons)\
**Post date:** [October 17, 2023, 1:33pm UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446/6 "2023-10-17T13:33:55Z")

</div>

Thanks @zach , is there any date for the next pritunl-zero release?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [October 19, 2023, 2:23am UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446/7 "2023-10-19T02:23:30Z")

</div>

The release is planned for this week.

---

<div class="post-metadata">

**Author:** ![eliel.sardanons](https://forum.pritunl.com/user_avatar/forum.pritunl.com/eliel.sardanons/32/642_2.png) [@eliel.sardanons](https://forum.pritunl.com/u/eliel.sardanons)\
**Post date:** [October 22, 2023, 12:32am UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446/8 "2023-10-22T00:32:59Z")

</div>

I have tested release [pritunl-zero v1.0.2887.68](https://github.com/pritunl/pritunl-zero/releases/tag/1.0.2887.68) and this feature is still _not working_ for me.  
I have 2 SSO providers (Google) with the same Label (Google SSO Login), domain names differ and the rest config is exactly the same. The 3 fast and force options enabled: Fast single sign-on login, Force fast user single sign-on login and Force fast service single sign-on login.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [October 25, 2023, 10:44am UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446/10 "2023-10-25T10:44:46Z")

</div>

This code was added to Pritunl Cloud but never copied over to Pritunl Zero. It will be included in another release later today.

---

<div class="post-metadata">

**Author:** ![eliel.sardanons](https://forum.pritunl.com/user_avatar/forum.pritunl.com/eliel.sardanons/32/642_2.png) [@eliel.sardanons](https://forum.pritunl.com/u/eliel.sardanons)\
**Post date:** [November 17, 2023, 2:50am UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446/11 "2023-11-17T02:50:57Z")

</div>

Thanks, now it is working, but i realized that when enabling it the query params during the login are being lost again (see [Query string gets lost in url-redirect - #6 by Latorre](https://forum.pritunl.com/t/query-string-gets-lost-in-url-redirect/1432/6))

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [November 18, 2023, 9:39pm UTC](https://forum.pritunl.com/t/feature-request-support-multiple-domains-for-google-sso/1446/12 "2023-11-18T21:39:18Z")

</div>

This should be fixed in the unstable release, it will be moved to stable today.
