A Control Room administrator can create OAuth connections for users to use these connections in the authentication action for packages without having to enter any authentication details.
About this task
The Salesforce mark and logo, the Microsoft SharePoint mark and logo, the Apigee mark and logo, ServiceNow mark and logo, and the Genesys mark and logo are trademarks or registered trademarks of Salesforce, Inc., Microsoft Corp., Google LLC, ServiceNow, Inc., and Genesys, respectively, and are used for identification purposes only.
In the OAuth connection workflow, the Automation 360 server acts as the client when establishing connections to the OAuth server for OAuth connections configured in the Automation 360 Control Room. The Control Room server obtains an access token and a refresh token, as applicable based on the grant type. These tokens are then reused when connecting to the resource server, either from the Control Room server or from the Bot Agent as part of automation. All standard interactions with the OAuth server are managed by the Automation 360 server.
For any external OAuth connections created in the Cloud Control Room instance, all external endpoints such as the authorization URL and token URL must be reachable from the Cloud Control Room through the network perimeter firewall rules. Configure your network firewall to include Automation Anywhere outbound IP addresses to the allowed list. See Control Room IP addresses for external integrations.
Before you begin
- If the Control Room servers are behind a proxy and external connections have to go through the proxy, then configure forward proxy settings as detailed in Configure forward proxy settings.
- Ensure that you are using a user role that has the Manage connections permission enabled for the OAuth Connections feature. See Feature permissions for a role.
- If you are adding more than one scope, ensure that you separate the scopes using
commas.
Example: api,refresh_token,offline_access
- Ensure that you have configured an enterprise application and made a note of the Client ID,
Client secret, Authorization URL, Token URL, and Scope.
Note:
- Consider the above prerequisites to avoid a connection error.
- Although the following table lists the applications that are certified, you can configure your enterprise applications using the by selecting Provider type as Custom.
Examples of key components of OAuth
| Enterprise applications | Authorization URL | Token URL | Scope |
|---|---|---|---|
| Azure DevOps | https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize | https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token | https://app.vssps.visualstudio.com/.default |
| 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 | Not required |
| 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 Calendar, Google Drive, Gmail, Google Sheets) | 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.
For granular scopes, see Scopes and permissions in the Microsoft identity platform For Microsoft Teams web trigger, add 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 |
Note:
|
| 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 Note: Use HTTPS-only callback. |
Leave blank.. Important: For
Salesforce connections, leave the
Scope field blank when creating the
connection. The OAuth client sends the
configured scope value on both the authorization request and the
token request, and Salesforce does not support the scope
parameter on the token request. Entering a value results in the
error scope parameter not supported. Configure the
required scopes on the connected app in Salesforce
instead. |
| ServiceNow | https://<yourinstance>.service-now.com/oauth_auth.do | https://<yourinstance>.service-now.com/oauth_token.do | Not required |
| Zendesk | https://<yourinstance>.zendesk.com/oauth/authorizations/new | https://<yourinstance>.zendesk.com/oauth/tokens |
|
Procedure
Example
The following video shows how to create an OAuth connection: