Skip to content

Commit

Permalink
chore: simplify allowlist check
Browse files Browse the repository at this point in the history
  • Loading branch information
jawabuu authored and max-wittig committed Oct 15, 2024
1 parent 467070b commit 2113e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oidc/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2113e01

Please sign in to comment.