SAML 属性 AttributeStatement 的用法

发布于 2024-12-29 19:12:16 字数 186 浏览 3 评论 0原文

在 SAML 2.0 中,您可以使用 AttributeStatement 元素来提供任何类型的应用程序特定信息。

我想知道,在 SAML 断言中传递业务相关信息真的是一个好的设计吗?这些数据不应该在单独的 Web 服务调用中提供吗?

我只是想询问这种情况下的最佳实践或任何现实世界的经验。

问候, 安德烈亚斯

in SAML 2.0 you can use the AttributeStatement element to provide any kind of application specific information.

What I was wondering, is it really good design to pass business related information within a SAML assertion? Shouldn't this data be provided in a e.g. separate web services call?

I just want to ask for best practice in this case or any real world experiences.

Regards,
Andreas

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

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

发布评论

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

评论(1

贩梦商人 2025-01-05 19:12:16

这在很大程度上取决于您要传达的信息。例如,在我开发的应用程序中,我们使用属性来指示应向登录用户显示哪些网站功能。这显然是一个合适的用途。现在,我们还允许使用属性来创建用户配置文件,即使我们有一个执行相同操作的 Web 服务(事实上,该实现在幕后调用 Web 服务)。对于这类事情来说,这并不是一个理想的环境。没有端点可以传送 Web 服务响应,也没有尝试导致的任何错误。但我们受到了客户的强烈抵制,他们不希望在进行 SSO 调用之前必须调用单独的 Web 服务。所以我们不得不妥协。我们所做的是要求如果客户想要使用此特定功能,他们需要提供一个端点(电子邮件地址或网页)来接收来自 Web 服务调用的错误。如果他们担心所传送信息的安全性,他们可以使用标准 XML 加密。

It depends a lot on just what information you're conveying. For instance, on the application I work on, we use attributes to indicate what web site features should be shown to the user being logged on. That's clearly an appropriate use. Now, we also allow use of attributes to create a user profile, even though we have a web service that does the same thing (and in fact, the implementation calls the web service behind the scenes). It's not an ideal context for that sort of thing; there's no endpoint to convey the web service response to, or any errors resulting from the attempt. But we get a fair amount of resistance from customers, who don't want to have to call a separate web service before they can make an SSO call. So we've had to compromise. What we've done is require that if a customer wants to use this particular functionality, that they provide an endpoint (either email address or web page) to receive errors from the web service call. And if they're concerned about security of the information being conveyed, they can use standard XML encryption.

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