qor / auth

Golang Authentication solution
MIT License
733 stars 99 forks source link

Google: Add an AllowedDomains config clause #17

Closed defer closed 5 years ago

defer commented 6 years ago

By default, qor's google integration accepts all domains. In some cases it might be useful to authenticate against google app domains from one or more organizations.

If AllowedDomains is empty the behavior is unchanged but if it is set, only emails that are contained in that slice are accepted.