Single sign on simplesamlphp get属性返回的值不是预期值

Single sign on simplesamlphp get属性返回的值不是预期值,single-sign-on,saml-2.0,openam,Single Sign On,Saml 2.0,Openam,我已经安装了OpenAM和SimpleSAMLPhp。我可以通过OpenAM“Test Fed”和SimpleSAMLPhp中的“auth”页面进行身份验证,因此我相信它都能正常工作 但是,当我对用户进行身份验证,然后打印时: $attributes = $as->getAttributes(); $attrs = print_r($attributes, true); print '<pre>Attrs: ' . $attrs . '</pre>'; 如我所料

我已经安装了OpenAM和SimpleSAMLPhp。我可以通过OpenAM“Test Fed”和SimpleSAMLPhp中的“auth”页面进行身份验证,因此我相信它都能正常工作

但是,当我对用户进行身份验证,然后打印时:

$attributes = $as->getAttributes();
$attrs = print_r($attributes, true);

print '<pre>Attrs: ' . $attrs . '</pre>';
如我所料,其中包括:

如果我调用RESTAPI。。。它按预期返回值


我也包括在内。这是OpenAM/SimpleSAMLPhp设置问题吗?

正如您可能知道的那样,SAML与Identity Web服务(与REST一起使用,并返回“属性资源”的默认属性集)完全不同

通过在OpenAM端为服务提供者配置属性映射,可以将属性语句包括到SAML身份验证响应中


要映射的属性必须在数据存储配置中可用。

我期望的和我看到的:您还应该能够看到SAML断言根本不包含AttributeStatement(也不包含您希望在SP中拥有的属性),这是因为您尚未为此SP在OpenAM端设置属性映射。;)我已经根据以下截图完成了这项工作:-我相信这就是你的意思?还有什么我需要做的吗?SP端是否有任何重新配置/更新?因为我仍然看不到SimpleSAMLPhp能够帮助他们渡过难关
Attrs: Array
(
    [groups] => Array
    (
        [0] => users
        [1] => members
    )

)
inetuserstatus=[true], 
sn=[Healy], 
givenname=[Gareth], 
userpassword=xxx..., 
uid=[gareth.healy@localhost.com]