Projet

Général

Profil

0001-saml2_endpoints-fix-initialization-of-attributes-dic.patch

Benjamin Dauvergne, 20 mai 2015 11:58

Télécharger (1,15 ko)

Voir les différences:

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(-)
src/authentic2/idp/saml/saml2_endpoints.py
212 212
    for attribute in attribute_statement.attribute:
213 213
        name = attribute.name.decode('utf-8')
214 214
        name_format = attribute.nameFormat.decode('utf-8')
215
        attributes[(name, name_format)] = attribute
215
        attributes[(name, name_format)] = attribute, attribute.attributeValue
216 216
        for atv in attribute.attributeValue:
217 217
            if atv.any and len(atv.any) == 1 and isinstance(atv.any[0], lasso.MiscTextNode) and \
218 218
                    atv.any[0].textChild:
219
-