Sending XML header with SimpleSamlPhp

南笙酒味 提交于 2021-01-28 02:02:43

问题


I'm using SimpleSamlPhp for SAML Service Provider.

SimpleSamlPhp is sending sending auth request without xml headers, but IdP says they require an xml header. How can I add utf-8 header to request? (<?xml version="1.0" encoding="UTF-8"?>)

This is how I send

<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="gfpdfaailecofabshsehljipgpofofghjjahggi" Version="2.0" IssueInstant="2011-08-23T06:26:06Z" ProtocolBinding="urn:oasis: etc.....

This is how IdP asks for

<?xml version="1.0" encoding="UTF-8"?><samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="gfpdfaailecofabshsehljipgpofofghjjahggi" Version="2.0" IssueInstant="2011-08-23T06:26:06Z" ProtocolBinding="urn:oasis: etc.....

PS: Tested my SP on Feide OpenIdp and works fine.

来源:https://stackoverflow.com/questions/7159199/sending-xml-header-with-simplesamlphp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!