Auth0 Home Blog Docs

Restrict access to google domain

lock
google
google-app

#1

For an internal client we would like to allow google access, but only to users that are signing up with our company’s google account. Is this possible?


#2

You can use the Email domain whitelist rule to restrict access to users with from your specific email domain:
https://auth0.com/rules/simple-domain-whitelist


#3

Ok, but what happens when the user is already logged into chrome with another account? They are denied… but then what? Is there a way to do this like using google’s oauth api “hd” (host domain) parameter?


#4

helpful. thanks


#5