Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
db8b87d0
Commit
db8b87d0
authored
Jan 28, 2020
by
Lukas Burgey
Browse files
Fix boolean
parent
d1f22fab
Changes
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/auth/v1/__init__.py
View file @
db8b87d0
...
...
@@ -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
=
t
rue
):
for
oidc_client
in
OIDCConfig
.
objects
.
filter
(
enabled
=
T
rue
):
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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment