diff --git a/oidc/views.py b/oidc/views.py index ce9e641..c4601bb 100644 --- a/oidc/views.py +++ b/oidc/views.py @@ -62,7 +62,7 @@ def dispatch(self, request: HttpRequest, helper) -> Response: # type: ignore if domain in OIDC_DOMAIN_BLOCKLIST: return helper.error(ERR_INVALID_DOMAIN % (domain,)) - if OIDC_DOMAIN_ALLOWLIST != set() and domain not in OIDC_DOMAIN_ALLOWLIST: + if OIDC_DOMAIN_ALLOWLIST and domain not in OIDC_DOMAIN_ALLOWLIST: return helper.error(ERR_INVALID_DOMAIN % (domain,)) helper.bind_state("domain", domain)