-
Notifications
You must be signed in to change notification settings - Fork 15
Description
The samples used in the SAML 2.0 Wikipedia page don't decode correctly when using MIME Tools:
<?xml version="1.0" encoding="UTF-8"?> <samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="aaf23196-1773-2113-474a-fe114412ab72" Version="2.0" IssueInstant="2004-12-05T09:21:59Z" AssertionConsumerServiceIndex="0" AttributeConsumingServiceIndex="0"> <saml:Issuer>https://sp.example.com/SAML2</saml:Issuer> <samlp:NameIDPolicy AllowCreate="true" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient"/> </samlp:AuthnRequest>
After Encoding and Decoding:
<?xml version="1.0" encoding="UTF-8"?> <samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assert " ID="aaf23196-1773-2113-474a-fe114412ab72" V 2.0" IssueInstant 2004-12-05T09:21:59Z" Assert ConsumerServiceIndex="0" AttributeConsumConServiceIndex="0"> Index:Issuer>https://sp.example.com/ 2</ndex:Issuer> Indexp:NIssIDPolicy AllowCreate="true" Format/ 2</ndex:Issuer> Indexp:Issid-format:transient"/ / >
Contains many nul chars.