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

Request/Enhancement: Add Support for HD (Hint Domain) to OauthLogin Module #4453

Open
Ipstenu opened this issue Jan 3, 2025 · 0 comments
Open

Comments

@Ipstenu
Copy link

Ipstenu commented Jan 3, 2025

PHP version: PHP 7.4.3-4ubuntu2.28
FreeScout version: 1.8.160
Database: MySQL
Are you using CloudFlare: Yes
Are you using non-official modules: Yes

Google allows you to do a 'hint domain' that auto-prepends (and locks) the domains that can be used for oAuth. This is helpful if you have multiple domains and only want some users to log in :)

The 'fix' is editing public static function oauthGetAuthUrl and adding .'&hd=example.com

It would be extra awesome if this was a setting (since Google is one of the supported built in options).

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

1 participant