Skip to content

Way to specify inclusive namespace prefix for XML canonicalization? #249

@lzen

Description

@lzen

Hi, I'm new to SAML and just encountered a problem when using pysaml2 to build an IdP. When building a signed request, the canonicalization algorithm specified in xmldsig/init.py is exclusive canonicalization ('http://www.w3.org/2001/10/xml-exc-c14n#') and it will not include declarations for some namespaces which are necessary for some SPs (e.g. namespace xmlns:xs for QNames like in xsi:type="xs:string"). The W3C recommendation specified InclusiveNamespaces PrefixList to handle these cases, but I couldn't find how to do it in pysaml2. There's a similar issue here:
https://bz.apache.org/bugzilla/show_bug.cgi?id=49710

Is there a solution? Either include these namespaces, or just remove all these xsi:type="xs:string".

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions