如何使用 simpleSAMLphp 自定义 IdP 发送的响应属性?

发布于 2024-12-15 07:55:13 字数 357 浏览 3 评论 0原文

我设置了两个 simpleSAMLphp 实例,一个作为服务提供者,另一个作为身份提供者(例如: http://sp.service.com & http://idp.service.com)。 对于身份验证,我使用 sqlauth。 在 sqlauth 示例中,身份验证成功后,IdP 将数据库表中的名称、用户名、电子邮件 ID、组名返回给 SP。 现在我想自定义该表并希望从中检索所有属性。

需要定制哪些文件或函数才能实现此目的?

I have setup two instances of simpleSAMLphp, one as service provider the other as identity provider (e.g.: http://sp.service.com & http://idp.service.com).
For authentication I am using sqlauth.
In the sqlauth example, after successful authentication the IdP returns the name, username, emailid, group name from the database tables to the SP.
Now I want to customize the table and want to retrieve all the attributes from it.

Which file or function needs to be customized to achieve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡看悲欢离合 2024-12-22 07:55:13

检查config/authsource.php(SP)metadata/saml20中是否有AttributeFilterLimit -idp 托管 (IdP)。

查看 IdP 是否获取所有用户数据的最佳方法是访问浏览器,打开 IdP 并访问身份验证 ->测试配置的身份验证源 ->斯考斯
(稍后您可以在 SP 检查 saml 身份验证时执行相同的操作)

如果您没有看到您期望的所有用户数据,则可能应用了过滤器或 sqlauth 未正确配置。

正如您在 sqlauth 文档 中看到的,您将获得与查询匹配的所有数据您在 authsource 配置文件中设置。

在 SP 方面,要在最终应用程序中检索属性,您必须查看此文档< /a>

Check if there are any AttributeFilterLimit in the config/authsource.php (SP) metadata/saml20-idp-hosted (IdP).

Best way to see if your IdP is getting all the user data is to access to the browser, open the IdP and access to Authentication -> Test configured authentication sources -> sqauth
(Later you can do the same at the SP cheking the saml auth)

If you don't see all the user data that you expected, maybe, a filter is applied or the sqlauth is not well configured.

As you can see in the sqlauth documentation you will get all the data that matchs the query that you set in the authsource configuration file.

At the SP side, to retrieve attribute at your final application you must take a look on this documentation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文