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

Make sure that userinfos always contain the issuer

Closes #42
parent 647f556b
......@@ -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()
......
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