简体   繁体   English

来自Salesforce的外部Web应用程序身份验证

[英]External Web App Authentication from Salesforce

I am trying to build a Salesforce App Integration to a SAAS product we own. 我正在尝试将Salesforce应用集成到我们拥有的SAAS产品。 (say www.ABC.com). (例如www.ABC.com)。 The app would have a simple Apex page to fetch files from Salesforce Objects and upload them on ABC.com. 该应用程序将具有一个简单的Apex页面,可从Salesforce Objects获取文件并将其上传到ABC.com。

For this to work, I want the users on salesforce to be registered users on ABC.com. 为此,我希望salesforce上的用户是ABC.com上的注册用户。 They should be able to login into ABC.com from SFDC. 他们应该能够从SFDC登录到ABC.com。 However, I have a few concerns 但是,我有一些担忧

  • OAuth - Although SFDC has this capability, I do not want to implement an Oauth Provider service on ABC.com. OAuth-尽管SFDC具有此功能,但我不想在ABC.com上实现Oauth Provider服务。

  • Signed Request Authentication - Since, I want SFDC users to have an account on ABC.com, this strategy may not be helpful. 签名请求身份验证-由于我希望SFDC用户在ABC.com上拥有一个帐户,因此该策略可能无济于事。 Please correct me if you think I am wrong. 如果您认为我错了,请纠正我。

  • There would be a simple login apex page on SFDC which logs them in. ABC.com is then embedded into an iframe in the next view. SFDC上将有一个简单的登录顶点页面,该页面将其登录。然后,在下一个视图中将ABC.com嵌入到iframe中。

Any ideas on managing the session and cookies? 关于管理会话和Cookie的任何想法? Do I have to store the cookies in order to have a long lived connection to ABC.com so that users do not have to login every time they use the app. 我是否必须存储cookie才能与ABC.com建立长期连接,以便用户不必在每次使用该应用程序时都进行登录。 Thanks! 谢谢!

I had the same requirement and chose to use a signed request when calling my iframe. 我有相同的要求,并在调用iframe时选择使用签名的请求。 When receiving the signed request, I validated that the request came from Salesforce and was signed by the shared secret. 收到签名的请求时,我验证了该请求来自Salesforce并由共享密钥签名。 You can then use a convention of mapping between SF users and abc.com users. 然后,您可以使用SF用户和abc.com用户之间的映射约定。 For example, identical email account. 例如,相同的电子邮件帐户。 If so, you log in the user in abc.com. 如果是这样,请在abc.com中登录用户。

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

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