djangosaml2idp icon indicating copy to clipboard operation
djangosaml2idp copied to clipboard

Fix error when writting XML metadata with utf-8 characters

Open vgiralt opened this issue 1 year ago • 0 comments

If SP metadata contains utf-8 characters, for example letters with diacriticals, the generation of the corresponding XML file on the filesystem, fails with an error, resulting in interrupted SAML flow and, thus, blocking authentication (at least in the relatively dated systems I'm forced to use). Properly formatted Metadata XML SHOULD be utf-8, so, adding the encoding parameter to the open statement, fixes the problem.

vgiralt avatar Jan 23 '23 17:01 vgiralt