简体   繁体   English

(SalesForce SAML)SAML authNrequest是否有可能覆盖断言消费者服务网址(ACS)

[英](SalesForce SAML) Is it possible for SAML authNrequest to override Assertion Consumer Service url(ACS)

I'm trying to use the same salesforce app with multiple SAML service providers. 我正在尝试将相同的salesforce应用程序与多个SAML服务提供商一起使用。 All of the service providers have the same identifiers, the only things that I need from sales force is to send the SAMLResponses to Assertion Consumer Service(ACS) that I specify when I construct the authNresponse request. 所有服务提供商都具有相同的标识符,销售人员唯一需要做的就是将SAMLRespons发送给我在构造authNresponse请求时指定的断言消费者服务(ACS)。

When I construct the SP initiated an authentication request to SF I include the ACS URL(as AssertionConsumerServiceURL field) in the SAMLRequest token, but it doesn't seem to override the ACS URL that is mandatory in the connected apps SAML settings. 当我构造SP向SF发起身份验证请求时,我在SAMLRequest令牌中包括了ACS URL(作为AssertionConsumerServiceURL字段),但是它似乎没有覆盖已连接应用程序SAML设置中必需的ACS URL。

Maybe there is a way to override the ACS URL? 也许有一种方法可以覆盖ACS URL?

Not sure about SalesForce but in general, yes we can. 不确定SalesForce,但总的来说,可以。 Just add the AssertionConsumerServiceURL="xxx" tag to the AuthNRequest. 只需将AssertionConsumerServiceURL =“ xxx”标签添加到AuthNRequest中即可。 I just tried this myself (with Optimal IdM). 我自己尝试过此操作(使用了最佳IDM)。 Unless SalesForce has restrictions in place that don't accept overriding, this is possible. 除非SalesForce有不接受覆盖的限制,否则这是可能的。

So a sample AuthNRequest would look like: 因此,AuthNRequest示例如下所示:

 <samlp:AuthnRequest Version="2.0" IssueInstant="2018-06-29T14:46:11.33Z" ForceAuthn="false" IsPassive="false" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" AssertionConsumerServiceURL="xxxxxxx"> <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">xxxxxxx</saml:Issuer> </samlp:AuthnRequest> 

PS: I know it's an old thread, but answering anyway for the sake of others. PS:我知道这是一个老话题,但无论如何还是为了他人而回答。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM