verify_ticket(ticket) can return None as attributes
This commit is contained in:
parent
d1c5ff4019
commit
7a637c7321
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ class CASFederateValidateUser(object):
|
|||
return False
|
||||
username, attributs, pgtiou = self.client.verify_ticket(ticket)
|
||||
if username is not None:
|
||||
if attributs is None:
|
||||
attributs = {}
|
||||
attributs["provider"] = self.provider
|
||||
self.username = username
|
||||
self.attributs = attributs
|
||||
|
|
Loading…
Reference in a new issue