Skip to content

Commit

Permalink
chore: simplify allowlist check
Browse files Browse the repository at this point in the history
  • Loading branch information
jawabuu committed May 14, 2021
1 parent 0f8a9f4 commit d2d1b54
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 @@ -55,7 +55,7 @@ def dispatch(self, request, helper):
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 d2d1b54

Please sign in to comment.