Update routing.py
This commit is contained in:
parent
4760019e80
commit
d7708fbbbf
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ def validate(ticket):
|
|||
current_app.logger.debug("valid")
|
||||
xml_from_dict = xml_from_dict["cas:serviceResponse"]["cas:authenticationSuccess"]
|
||||
username = xml_from_dict["cas:user"]
|
||||
attributes = xml_from_dict["cas:attributes"]
|
||||
attributes = xml_from_dict.get("cas:attributes", {})
|
||||
|
||||
if "cas:memberOf" in attributes:
|
||||
if isinstance(attributes["cas:memberOf"], basestring):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue