def auth_allowed(self, response, details):
        emails = self.setting('WHITELISTED_EMAILS', [])
        domains = self.setting('WHITELISTED_DOMAINS', [])
        email = details.get('email')
        allowed = True
        if email and (emails or domains):
            domain = email.split('@', 1)[1]
            allowed = email in emails or domain in domains
        return allowed
Return True if the user should be allowed to authenticate, by
dataset/ETHPy150Open omab/python-social-auth/social/backends/base.py/BaseAuth.auth_allowed