[英]Api Authentication with Salesforce using Google as an Identity Provider
I'm a bit new to the authentication/authorization landscape and need some advice on how to architect/implement an application that will ultimately be connecting to Salesforce and retrieving information. 我对身份验证/授权环境有些陌生,并且需要一些有关如何架构/实现最终将连接到Salesforce并检索信息的应用程序的建议。 At a very high-level, I'm building a mobile app that will need to pull Salesforce related data to display to the user. 从高度上讲,我正在构建一个移动应用程序,它将需要提取与Salesforce相关的数据以显示给用户。 Their specific Salesforce instance uses Google as the identity provider. 他们的特定Salesforce实例使用Google作为身份提供者。 Also, we are planning to put a gateway in place to orchestrate all communication with Salesforce and potentially do some response aggregation. 另外,我们计划放置一个网关来协调与Salesforce的所有通信,并可能进行一些响应汇总。 We're also planning on using Cognito to handle the identity management. 我们还计划使用Cognito处理身份管理。 My specific questions are: 我的具体问题是:
I'm sure that I'm asking some naive quesitons, and really don't know where to start. 我确定我要问一些幼稚的问题,而且真的不知道从哪里开始。 I've recently build an Api for Salesforce Connect's use using Azure as an identity provider and that was fairly straightforward, though that was machine-to-machine and much simpler. 我最近使用Azure作为身份提供程序来构建供Salesforce Connect使用的Api,这相当简单,尽管这是机器对机器并且简单得多。 Any help at all would be greatly appreciated. 任何帮助将不胜感激。 Thank you. 谢谢。
It has been a while... not sure you still have an issue. 已经有一段时间了...不确定您还有问题。
Assuming salesforce is configured to use Google for auth/as an Auth Provider
: you have to have your app auth
to salesforce
, and salesforce
will automatically redirect the user to auth to Google
(or ensure there is an existing valid Google
user session, and let you access salesforce
). 假设将salesforce配置为使用Google进行身份验证/作为身份Auth Provider
:您必须将应用程序auth
授予salesforce
,并且salesforce
会自动将用户重定向到auth进行Google
身份验证(或确保存在现有的有效Google
用户会话,并让您可以访问salesforce
)。 Google
with issue a token to salesforce
, and salesforce
will issue its own token to your app. Google
向salesforce
发行令牌,而salesforce
将向您的应用程序发行自己的令牌。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.