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
b2f7571d
Commit
b2f7571d
authored
Jan 28, 2020
by
Lukas Burgey
Browse files
Make sure that userinfos always contain the issuer
Closes
#42
parent
647f556b
Changes
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/models/users.py
View file @
b2f7571d
...
...
@@ -389,6 +389,10 @@ class User(AbstractUser):
if
'given_name'
in
userinfo
:
self
.
first_name
=
userinfo
[
'given_name'
]
# make sure the userinfo always contains the issuer uri
if
'iss'
not
in
userinfo
:
userinfo
[
'iss'
]
=
self
.
idp
.
issuer_uri
self
.
userinfo
=
userinfo
self
.
save
()
...
...
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