【问题标题】:SAML SSO - How to configure a dynamic ACS URL (SalesForce is IdP)SAML SSO - 如何配置动态 ACS URL(SalesForce 是 IdP)
【发布时间】:2018-03-05 22:00:01
【问题描述】:

我是服务提供商。此外,对这个开源 C# 组件 (AspNetSaml) 大喊大叫,他们让生活变得更轻松:https://github.com/jitbit/AspNetSaml

无论如何,当我向 IdP(在本例中为 SalesForce)发送请求时,我提供了一个 ACS URL,我可以看到它是在我的 xml 中设置的:

xw.WriteAttributeString("ProtocolBinding", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST");
xw.WriteAttributeString("AssertionConsumerServiceURL", _assertionConsumerServiceUrl);

(_assertionConsumerServiceUrl 是我真正希望它重定向到的,我可以看到它已设置)

但 Salesforce 的情况是它始终使用我在创建 Connected App 时需要设置的 ACS URL:

我的真实 ACS URL 值已清空,但该值始终被重定向到。

必须有办法。想象一下,如果您不想设置http://www.foo.com/,而是想重定向到:http://www.foo.com/?Some=1&Value=2&You=3&Want=4&ToAdd=5 ...并且这些值可能因用户而异。

这一定是可能的!谢谢!

【问题讨论】:

  • 一个 RelayState 参数,您在重定向到 IdP 时添加,看起来很有希望!

标签: salesforce single-sign-on saml saml-2.0


【解决方案1】:

我等了一个多星期,以免看起来我在回答自己的问题只是为了建立代表点。

无论如何,正如我在这里发现并确认的那样:https://salesforce.stackexchange.com/questions/210419/saml-sso-how-to-configure-a-dynamic-acs-url-salesforce-is-idp/210496

RelayState 用于在成功登录后将用户引导到他们正在登录的应用程序中的特定位置。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-10-12
    • 2018-06-18
    • 2014-12-24
    • 2014-12-11
    • 1970-01-01
    • 2015-07-11
    • 2022-01-23
    相关资源
    最近更新 更多