使用PHP在我的SP上获取IDP参数

时间:2017-10-10 11:31:31

标签: php apache saml adfs shibboleth

我使用Shibboleth和Apache配置了SP服务器。与IDP的通信有效,但我登录SP后没有收到数据。

我搜索$_GET$_POST$_COOKIE$_SESSION$_SERVER,但我没有在PHP上获取IDP参数。< / p>

当我访问网址“https://mydomain.ext/Shibboleth.sso/Session”时,属性为空。

我想知道如何知道PHP上的接收参数。

感谢的

1 个答案:

答案 0 :(得分:1)

需要告诉Shibboleth SP接受属性。例如在

SHIBBOLETH_HOME/etc/shibboleth/attribute-map.xml

<Attribute name="urn:oid:0.0.7" id="CB_InterestingAttribute">
  <AttributeDecoder xsi:type="StringAttributeDecoder" caseSensitive="false"/>
</Attribute>
例如,您可以通过以下方式访问Sinatra应用程序:

ENV['CB_InterestingAttribute']
相关问题