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 地址。
开始之前
- 如果 Control Room 服务器位于代理之后并且外部连接必须通过代理,请按照 配置转发代理设置 中所述配置转发代理设置。
- 确保您使用的用户角色已为 OAuth 连接功能启用了管理连接权限。 请参阅 角色的功能权限。
- 如果您要添加多个范围,请确保使用逗号分隔这些范围。
示例:api,refresh_token,offline_access
- 确保您已配置企业应用程序,并记下客户端 ID、客户端密钥、授权 URL、令牌 URL 和范围。 请参阅 配置企业应用程序
注:
- 请考虑上述先决条件以避免连接错误。
- 虽然下表列出了通过认证的应用程序,但您可以通过将提供程序类型选择为自定义,使用来配置您的企业应用程序。
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 | api, refresh_token, offline_access |
| 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 连接: