使用SimpleSamlPhp发送XML标头

时间:2011-08-23 09:54:57

标签: php xml saml xml-declaration

我正在SimpleSamlPhp用于SAML服务提供商。

SimpleSamlPhp正在发送没有xml标头的发送auth请求,但IdP表示它们需要一个xml标头。如何添加utf-8标头来请求? (<?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.....

这是IdP要求的方式

<?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:在Feide OpenIdp上测试我的SP并且工作正常。

0 个答案:

没有答案