From 778994ea4134630ade3fa06931818623834247bf Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 20 May 2015 11:53:12 +0200 Subject: [PATCH 1/2] saml2_endpoints: fix initialization of attributes dictionnary from existing SAML attributes refs #7285 --- src/authentic2/idp/saml/saml2_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/idp/saml/saml2_endpoints.py b/src/authentic2/idp/saml/saml2_endpoints.py index 31e4661..8686484 100644 --- a/src/authentic2/idp/saml/saml2_endpoints.py +++ b/src/authentic2/idp/saml/saml2_endpoints.py @@ -212,7 +212,7 @@ def add_attributes(request, assertion, provider): for attribute in attribute_statement.attribute: name = attribute.name.decode('utf-8') name_format = attribute.nameFormat.decode('utf-8') - attributes[(name, name_format)] = attribute + attributes[(name, name_format)] = attribute, attribute.attributeValue for atv in attribute.attributeValue: if atv.any and len(atv.any) == 1 and isinstance(atv.any[0], lasso.MiscTextNode) and \ atv.any[0].textChild: -- 2.1.4