创建 OAuth 连接
- Updated: 2025/11/21
Control Room 管理员可以为用户创建 OAuth 连接,以便在 packages 的身份验证操作中使用这些连接,而无需输入任何身份验证详细信息。
Salesforce 标志和徽标、Microsoft SharePoint 标志和徽标、Apigee 标志和徽标、ServiceNow 标志和徽标以及 Genesys 标志和徽标分别是 Salesforce, Inc.、Microsoft Corp.、Google LLC、ServiceNow, Inc. 和 Genesys 的商标或注册商标,仅用于识别目的。
对于在 Cloud Control Room 实例中创建的任何外部 OAuth 连接,所有外部端点(例如授权 URL 和令牌 URL)必须能够通过网络边界防火墙规则从 Cloud Control Room 访问。 配置您的网络防火墙,将 Automation Anywhere 个出站 IP 地址添加到允许列表。 请参阅 Control Room IP addresses for external integrations。
先决条件
- 如果 Control Room 服务器位于代理之后并且外部连接必须通过代理,请按照 配置转发代理设置 中所述配置转发代理设置。
- 确保您使用的用户角色已为 OAuth 连接功能启用了管理连接权限。 请参阅 角色的功能权限。
- 如果您要添加多个范围,请确保使用逗号分隔这些范围。
示例:api,refresh_token,offline_access
- 确保您已配置企业应用程序,并记下客户端 ID、客户端密钥、授权 URL、令牌 URL 和范围。 请参阅 配置企业应用程序
注:
- 请考虑上述先决条件以避免连接错误。
- 虽然下表列出了通过认证的应用程序,但您可以通过将提供程序类型选择为自定义,使用来配置您的企业应用程序。
OAuth 的关键组件示例
| 企业应用程序 | 授权 URL | 令牌 URL | 范围 |
|---|---|---|---|
| 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(日历、云端硬盘、Gmail、表格) | 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 | offline_access write:jira-work,read:jira-user,manage:jira-webhook,read:jira-work |
| Microsoft Entra(Microsoft 365、Office、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 Entra (SharePoint) | https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize | https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/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 | 不需要 |
过程
以下视频演示了如何创建 OAuth 连接: