From 57ada622e45492ceb99a2f7c01c0b5f81bbc45c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 20 Feb 2015 16:00:26 +0100 Subject: [PATCH] saml: don't try saving lasso identity if there's none (#6565) --- extra/modules/saml2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/modules/saml2.py b/extra/modules/saml2.py index cdebf47..8978255 100644 --- a/extra/modules/saml2.py +++ b/extra/modules/saml2.py @@ -108,7 +108,7 @@ class Saml2Directory(qommon.saml2.Saml2Directory): if not login.nameIdentifier.content in user.name_identifiers: user.name_identifiers.append(login.nameIdentifier.content) - if login: + if login and login.identity: user.lasso_dump = login.identity.dump() user.store()