简体   繁体   English

SalesForce和OpenAM集成问题

[英]SalesForce & OpenAM integration issue

I am doing integration of SalesForce and OpenSSO with SAML. 我正在将SalesForce和OpenSSO与SAML集成在一起。 I have implemented steps mentioned on site 我已经执行了网站上提到的步骤

There are two important use cases for SAML SAML有两个重要的用例

  1. Identity Provider Initiated Login, where a user starts directly at their identity provider, logs in, and is then redirected to a landing page at the service provider; 身份提供商发起的登录,其中用户直接从其身份提供商处启动,登录,然后重定向到服务提供商处的登录页面; ----This case working fine ----此案运作良好
  2. Service Provider Initiated Login, where a user starts by clicking a link to the the service provider (eg a bookmark, mailed link, etc.) and temporarily redirected to the identity provider for authentication, then returned to the link they initially requested. 服务提供商启动的登录,其中用户通过单击指向服务提供商的链接(例如书签,邮寄的链接等)开始,并临时重定向到身份提供商进行身份验证,然后返回到他们最初请求的链接。

I am trying to implement 2nd Scenario :I am performing following steps 我正在尝试实施第二种情况:我正在执行以下步骤

  1. created my domain in SalesForce and deployed for Users 在SalesForce中创建了我的域并为用户部署了
  2. Added Identity Provider in Single Sign-On Settings 在单一登录设置中添加了身份提供程序
  3. When I access My Domain URL. 当我访问“我的域URL”时。 It redirect me to Identity provider login page. 它将我重定向到身份提供程序登录页面。
  4. After login to IDP it won't redirect back to SalesForce page. 登录到IDP后,它不会重定向回SalesForce页面。 It shows IDP success page. 它显示IDP成功页面。

How should I redirect back to SalesForce success page? 我应该如何重定向回到SalesForce成功页面?

Salesforce's SP initiated SAML implementation is basically a hack - You need to first fire off an IDP initiated SAML response which contains an attribute called ssoStartPage. Salesforce的SP启动的SAML实现基本上是一种黑客-您需要首先触发IDP启动的SAML响应,该响应包含名为ssoStartPage的属性。 this points to your IDP login page. 这指向您的IDP登录页面。 Once salesforce has seen this attribute it remembers it and uses it for future (SP initiated) requests. Salesforce看到此属性后,便会记住该属性并将其用于将来(SP发起)的请求。 This post should hopefully help you (see point 3 at the bottom) 希望该帖子对您有所帮助(请参阅底部的第3点)

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

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