使用 PHP 在我的 SP 上获取 IDP 参数
Get IDP params on my SP with PHP
我用 Shibboleth 和 Apache 配置了一个 SP 服务器。与 IDP 的通信正常,但我在我的 SP 上登录后收不到数据。
我在 $_GET
、$_POST
、$_COOKIE
、$_SESSION
和 $_SERVER
上搜索,但我没有在 PHP.
当我访问url“https://mydomain.ext/Shibboleth.sso/Session”时,属性是空的。
我想知道如何知道 PHP 上的接收参数。
谢谢
需要告知 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']
我用 Shibboleth 和 Apache 配置了一个 SP 服务器。与 IDP 的通信正常,但我在我的 SP 上登录后收不到数据。
我在 $_GET
、$_POST
、$_COOKIE
、$_SESSION
和 $_SERVER
上搜索,但我没有在 PHP.
当我访问url“https://mydomain.ext/Shibboleth.sso/Session”时,属性是空的。
我想知道如何知道 PHP 上的接收参数。
谢谢
需要告知 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']