Connect to a Git provider using OAuth 2.0 with the ServiceNow IDE
-
- UpdatedJan 30, 2025
- 4 minutes to read
- Xanadu
- ServiceNow IDE
Set up an OAuth 2.0 application registry and credentials to connect to your Git provider from the ServiceNow IDE.
Configure an OAuth 2.0 application registry for the ServiceNow IDE
Configure how the client ID and secret are sent to the OAuth 2.0 provider associated with your Git provider.
Before you begin
Create an OAuth application with your Git provider and configure it to redirect to your instance. In this OAuth application, use your instance URL as the homepage URL and https://<instance>/oauth_redirect.do for the authorization callback URL. GitHub, GitLab, Bitbucket, and Azure Repos are supported by default.
- Navigate to .
- Filter the table by entering oauth_entity for the Name field.
- Select the Application Registries [oauth_entity] table.
- In the Columns related list, locate the Client Secret column and enter 2048 as the value of its Max length attribute.
- Select Update.
Role required: admin
About this task
To use OAuth 2.0 authentication with the ServiceNow IDE, you must register the OAuth application you created from your Git provider. Follow this procedure to configure an OAuth application registry [oauth_entity] on your instance.
Procedure
What to do next
Developers using the ServiceNow IDE must configure their own OAuth 2.0 credentials.
Configure OAuth 2.0 credentials to connect to a Git provider with the ServiceNow IDE
Connect to a Git domain using OAuth 2.0 credentials to manage applications in source control from the ServiceNow IDE.
Before you begin
- An administrator must configure how the client ID and secret are sent to the OAuth 2.0 provider associated with your Git provider. For more information, see Configure an OAuth 2.0 application registry for the ServiceNow IDE.
- Create a dedicated Git repository for an application in a Git provider such as GitHub, GitLab, Bitbucket, or Azure Repos.
Role required: sn_glider.ide_git_user or admin
Procedure
Result
Your Git credentials are associated with your user on the instance and used for all repositories in the domain from the Git repository URL. If you add different credentials for a repository in the same domain, the new credentials are used and the previous credentials are set to inactive.
What to do next
After initializing or cloning a repository, you can begin using source control. For more information, see Using source control in the ServiceNow IDE.
To manage existing Git credentials, use the Git: Manage Git credentials command from the command palette.
On this page
Related Content
- Connect to a Git provider using basic authentication with the ServiceNow IDE
Connect to a Git domain using basic authentication credentials to manage applications in source control from the ServiceNow IDE.
- Configure a MID Server to use source control with the ServiceNow IDE
Configure a MID Server to use source control with the ServiceNow IDE if your Git provider is behind a firewall.
- Initialize a Git repository with the ServiceNow IDE
Initialize a local Git repository for an application and push it to a remote Git repository to manage an application in source control.
- Clone a Git repository with the ServiceNow IDE
Clone a remote Git repository to collaborate on an application in source control with the ServiceNow IDE.
- Using source control in the ServiceNow IDE
Use Git commands and other source control features in the ServiceNow IDE to manage changes to an application across a development team.