Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to limit hosted domain on Google OAuth2 Authentication #1294

Open
diogouchoas opened this issue Jul 14, 2023 · 1 comment
Open

Ability to limit hosted domain on Google OAuth2 Authentication #1294

diogouchoas opened this issue Jul 14, 2023 · 1 comment

Comments

@diogouchoas
Copy link

diogouchoas commented Jul 14, 2023

Is your feature request related to a problem? Please describe.
Many users might need to limit oauth2 login with Google to allow only our corporate email domain. By default any valid google account is able to login, including @gmail.com .

Describe the solution you'd like
Add hd (hosted domain) variable to oauth configuration section.
https://developers.google.com/identity/openid-connect/openid-connect#hd-param

Describe alternatives you've considered
We currently use apache openidc module for login to Thruk

Additional context

@kirk444
Copy link

kirk444 commented Sep 22, 2023

I believe you can accomplish this directly with Google when you're configuring the "OAuth consent screen". There will be a field where you can specify allowed domains:

 Authorized domains
When a domain is used on the consent screen or in an OAuth client’s configuration, it must be pre-registered here. If your app needs to go through verification, please go to the [Google Search Console ](https://search.google.com/search-console/about)to check if your domains are authorized. [Learn more ](https://support.google.com/cloud/answer/7650096) about the authorized domain limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants