verify_ticket(ticket) can return None as attributes

This commit is contained in:
Valentin Samir 2016-06-23 12:14:02 +02:00
parent d1c5ff4019
commit 7a637c7321

View file

@ -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