Commit db8b87d0 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Fix boolean

parent d1f22fab
......@@ -31,7 +31,7 @@ class OIDCTokenAuthBackend:
# no issuer -> try all idps :/
def get_userinfo_bruteforce(self, access_token):
for oidc_client in OIDCConfig.objects.filter(enabled=true):
for oidc_client in OIDCConfig.objects.filter(enabled=True):
try:
return oidc_client, self.get_userinfo(
oidc_client,
......@@ -61,6 +61,7 @@ class OIDCTokenAuthBackend:
enabled=True,
)
# TODO OPTION 3: read 'iss' JWT
raise OIDCConfig.DoesNotExist('Unable to determine IdP')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment