【发布时间】:2016-05-15 10:18:57
【问题描述】:
我已成功配置 simpleSAMLphp,以便它通过测试 Shib IDP (https://www.testshib.org/) 进行身份验证。
Test Shib 返回以下属性:
- urn:oid:0.9.2342.19200300.100.1.1
- urn:oid:1.3.6.1.4.1.5923.1.1.1.1
- urn:oid:1.3.6.1.4.1.5923.1.1.1.6
- urn:oid:2.5.4.4
- urn:oid:1.3.6.1.4.1.5923.1.1.1.9
- urn:oid:2.5.4.42
- urn:oid:1.3.6.1.4.1.5923.1.1.1.7
- urn:oid:2.5.4.3
- urn:oid:1.3.6.1.4.1.5923.1.1.1.10
- urn:oid:2.5.4.20
我想将这些属性映射到友好名称。谁能给我一些关于如何做到这一点的指示?
authsources.php 中的 default-sp 示例如下:
/*
* The attributes parameter must contain an array of desired attributes by the SP.
* The attributes can be expressed as an array of names or as an associative array
* in the form of 'friendlyName' => 'name'.
* The metadata will then be created as follows:
* <md:RequestedAttribute FriendlyName="friendlyName" Name="name" />
*/
/*'attributes' => array(
'attrname' => 'urn:oid:x.x.x.x',
),*/
但是设置
'attributes' => array('myTestValue' => 'urn:oid:0.9.2342.19200300.100.1.1'),
没有效果。
我们将非常感激任何帮助!
【问题讨论】:
标签: php saml-2.0 simplesamlphp