Control Room 管理员可以为用户创建 OAuth 连接,以便在 软件包 的身份验证操作中使用这些连接,而无需输入任何身份验证详细信息。
关于此任务
Salesforce 标志和徽标、Microsoft SharePoint 标志和徽标、Apigee 标志和徽标、ServiceNow 标志和徽标以及 Genesys 标志和徽标分别是 Salesforce, Inc.、Microsoft Corp.、Google LLC、ServiceNow, Inc. 和 Genesys 的商标或注册商标,仅用于识别目的。
在 OAuth 连接工作流中,Automation 360 服务器在为 Automation 360 Control Room 中配置的 OAuth 连接到 OAuth 服务器时,充当客户端。 Control Room 服务器根据授权类型获取访问令牌和刷新令牌。 无论是从 Control Room 服务器,还是作为自动化的一部分从机器人坐席,这些令牌随后在连接到资源服务器时都会被重复使用。 与 OAuth 服务器的所有标准交互均由 Automation 360 服务器进行管理。
对于在 Cloud Control Room 实例中创建的任何外部 OAuth 连接,所有外部终端节点(例如授权 URL 和令牌 URL)必须能够通过网络边界防火墙规则从 Cloud Control Room 访问。 配置您的网络防火墙,将 Automation Anywhere 个出站 IP 地址添加到允许列表。 请参阅 外部集成 Control Room IP 地址。
开始之前
OAuth 的关键组件示例
| 企业应用程序 | 授权 URL | 令牌 URL | 范围 |
|---|---|---|---|
| Asana | https://app.asana.com/-/oauth_authorize | https://app.asana.com/-/oauth_token |
|
| Genesys | https://login.<yourinstance>.pure.cloud/oauth/authorize | https://login.<yourinstance>.pure.cloud/oauth/token | 不需要 |
| Google Apigee | https://accounts.google.com/o/oauth2/auth?prompt=consent&access_type=offline | https://accounts.google.com/o/oauth2/token | https://www.googleapis.com/auth/cloud-platform |
| Google Workspace(Google 日历、Google 驱动、Gmail、Google 表格) | https://accounts.google.com/o/oauth2/auth?prompt=consent&access_type=offline | https://oauth2.googleapis.com/token |
|
| Jira | https://auth.atlassian.com/authorize | https://auth.atlassian.com/oauth/token |
|
| Microsoft Entra(Microsoft 365、Microsoft Office、Microsoft Teams) | https://login.microsoftonline.com/<tenant>/oauth2/v2.0/authorize | https://login.microsoftonline.com/<tenant>/oauth2/v2.0/token |
offline_access, openid, https://graph.microsoft.com/.default。 有关细粒度权限范围,请参阅 Scopes and permissions in the Microsoft identity platform
对于 Microsoft Teams 网页触发器,添加 ChannelMessage.Read.All、Chat.Read、Chat.ReadBasic、Chat.ReadWrite、Chat.ReadWrite.All。 |
| Microsoft Entra (SharePoint) | https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize | https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token |
注:
|
| Okta | https://<yourinstance>.okta.com/oauth2/v1/authorize | https://<yourinstance>.okta.com/oauth2/v1/token |
|
| Salesforce | https://<yourinstance>.salesforce.com/services/oauth2/authorize | https://<yourinstance>.salesforce.com/services/oauth2/token | 留空。 重要: 对于 Salesforce 连接,在创建连接时请将范围字段留空。 OAuth 客户端会在授权请求和令牌请求中发送配置的范围值,而 Salesforce 不支持在令牌请求中使用范围参数。 输入值会导致错误不支持范围参数。 改为在 Salesforce 的已连接应用中配置所需的范围。
|
| ServiceNow | https://<yourinstance>.service-now.com/oauth_auth.do | https://<yourinstance>.service-now.com/oauth_token.do | 不需要 |
| Zendesk | https://<yourinstance>.zendesk.com/oauth/authorizations/new | https://<yourinstance>.zendesk.com/oauth/tokens |
|
过程
示例
以下视频演示了如何创建 OAuth 连接: