---
sourceDocument: Yokohama Build or modify applications
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/application-development

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Use OAuth to create pipeline credentials

# Use OAuth to create pipeline credentials {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read

Create credential records on each of your instances to enable OAuth use in your pipeline.

## Before you begin

Complete the tasks in [Create OAuth API endpoints for external clients](https://servicenow-prod.fluidtopics.net/sJjM2gKyo2Bvm3FyZ6xXbg "Create OAuth API endpoints to enable your controller instance to have two-way communication with your non-production instances. Follow and complete each step carefully on the specified instances before moving on to create your third-party OAuth provider records.") and [Create third-party OAuth provider records](https://servicenow-prod.fluidtopics.net/zhWcV1Lme67phJc1CFTUZw "Create third-party OAuth provider records to enable each of your instances to access the API endpoints you've created.").

In the top right corner of your instance, make sure you set the application scope to Global.

Open all of your instances (development, test, production, and the like) in separate browser tabs.

Role required: admin

## About this task

To configure credentials correctly, you must create records for each of your production and non-production instances on your production instance. Then, you must create a record for your production instance on each of your
non-production instances connecting them all together. Use the videos in each section to follow along with the steps. Begin on your production instance.

## Procedure

1. On your production instance, navigate to AllConnections \& CredentialsConnection \& Credential Aliases.  
2. Select New.
3. Change the Type to Credential.
4. In the Name field, enter <kbd class="ph userinput">Pipeline Dev OAuth</kbd>.
5. Select Submit.
6. Reopen the record you just created (Pipeline Dev OAuth).
7. On the Credentials related list, select New.
8. Select OAuth 2.0 Credentials.
9. On the form, fill in the fields.  
   {#use-oauth-to-create-pipeline-credentials__table_hbj_y4q_fyb__entry__2}

   | Field | Action |
   |-|-|
   | Name | Enter <kbd class="ph userinput">Dev OAuth</kbd>. |
   | OAuth Entity Profile | Search for and select the Dev Instance Connection default profile. |
   [Table 1. OAuth 2.0 Credentials form]

   {#use-oauth-to-create-pipeline-credentials__table_hbj_y4q_fyb}
10. Select Submit.
11. Reopen the Dev OAuth credential record.  
    An expected error appears, directing you to verify the OAuth configuration and select Get OAuth Token to request a new token.
12. Under Related Links, select Get OAuth Token.  
    A development instance opens requesting to connect to your ServiceNow account.
13. Select Allow.
14. Go back to the Connection \& Credential Aliases list (AllConnections \& CredentialsConnection \& Credential Aliases).
15. Select New.
16. Change the Type to Credential.
17. In the Name field, enter <kbd class="ph userinput">Pipeline Test OAuth</kbd>.
18. Select Submit.
19. Reopen the record you just created (Pipeline Test OAuth).
20. On the Credentials related list, select New.
21. Select OAuth 2.0 Credentials.
22. On the form, fill in the fields.  
    {#use-oauth-to-create-pipeline-credentials__table_bsc_jpq_fyb__entry__2}

    | Field | Action |
    |-|-|
    | Name | Enter <kbd class="ph userinput">Test OAuth</kbd>. |
    | OAuth Entity Profile | Search for and select the Test Instance Connection default profile. |
    [Table 2. OAuth 2.0 Credentials form]

    {#use-oauth-to-create-pipeline-credentials__table_bsc_jpq_fyb}
23. Select Submit.
24. Reopen the Test OAuth credential record.  
    An expected error appears, directing you to verify the OAuth configuration and select Get OAuth Token to request a new token.
25. Under Related Links, select Get OAuth Token.  
    A test instance opens requesting to connect to your ServiceNow account.
26. Select Allow.
27. Go back to the Connection \& Credential Aliases list (AllConnections \& CredentialsConnection \& Credential Aliases).
28. Select New.
29. Change the Type to Credential.
30. In the Name field, enter <kbd class="ph userinput">Pipeline Prod OAuth</kbd>.
31. Select Submit.
32. Reopen the record you just created (Pipeline Prod OAuth).
33. On the Credentials related list, select New.
34. Select OAuth 2.0 Credentials.
35. On the form, fill in the fields.  
    {#use-oauth-to-create-pipeline-credentials__table_rq1_ppq_fyb__entry__2}

    | Field | Action |
    |-|-|
    | Name | Enter <kbd class="ph userinput">Prod OAuth</kbd>. |
    | OAuth Entity Profile | Search for and select the Prod Instance Connection default profile. |
    [Table 3. OAuth 2.0 Credentials form]

    {#use-oauth-to-create-pipeline-credentials__table_rq1_ppq_fyb}
36. Select Submit.
37. Reopen the Prod OAuth credential record.  
    An expected error appears, directing you to verify the OAuth configuration and select Get OAuth Token to request a new token.
38. Under Related Links, select Get OAuth Token.  
    A production instance opens requesting to connect to your ServiceNow account.
39. Select Allow.
40. **Optional:** If you have any other non-production instances (staging, etc.), create a credential record for each of them on your production instance using the methods above.  
    Important:  
    After you've completed the steps above on your production instance, follow the steps below to create one credential record on each of your non-production instances connecting them to your production instance. Complete the next steps on your development instance.
41. On your development instance, navigate to AllConnections \& CredentialsConnection \& Credential Aliases.  
42. Select New to create a record to connect your development instance to production.
43. Change the Type to Credential.
44. In the Name field, enter <kbd class="ph userinput">Pipeline Prod OAuth</kbd>.
45. Select Submit.
46. Reopen the record you just created (Pipeline Prod OAuth).
47. On the Credentials related list, select New.
48. Select OAuth 2.0 Credentials.
49. On the form, fill in the fields.  
    {#use-oauth-to-create-pipeline-credentials__table_s1x_tpq_fyb__entry__2}

    | Field | Action |
    |-|-|
    | Name | Enter <kbd class="ph userinput">Prod OAuth</kbd>. |
    | OAuth Entity Profile | Search for and select the Prod Instance Connection default profile. |
    [Table 4. OAuth 2.0 Credentials form]

    {#use-oauth-to-create-pipeline-credentials__table_s1x_tpq_fyb}
50. Select Submit.
51. Reopen the Prod OAuth credential record.  
    An expected error appears, directing you to verify the OAuth configuration and select Get OAuth Token to request a new token.
52. Under Related Links, select Get OAuth Token.  
    A production instance opens requesting to connect to your ServiceNow account.
53. Select Allow.  
    Important:  
    Complete the next steps on your test instance.
54. On your test instance, navigate to AllConnections \& CredentialsConnection \& Credential Aliases.  
55. Select New to create a record to connect your test instance to production.
56. Change the Type to Credential.
57. In the Name field, enter <kbd class="ph userinput">Pipeline Prod OAuth</kbd>.
58. Select Submit.
59. Reopen the record you just created (Pipeline Prod OAuth).
60. On the Credentials related list, select New.
61. Select OAuth 2.0 Credentials.
62. On the form, fill in the fields.  
    {#use-oauth-to-create-pipeline-credentials__table_fbx_5pq_fyb__entry__2}

    | Field | Action |
    |-|-|
    | Name | Enter <kbd class="ph userinput">Prod OAuth</kbd>. |
    | OAuth Entity Profile | Search for and select the Prod Instance Connection default profile. |
    [Table 5. OAuth 2.0 Credentials form]

    {#use-oauth-to-create-pipeline-credentials__table_fbx_5pq_fyb}
63. Select Submit.
64. Reopen the Prod OAuth credential record.  
    An expected error appears, directing you to verify the OAuth configuration and select Get OAuth Token to request a new token.
65. Under Related Links, select Get OAuth Token.  
    A production instance opens requesting to connect to your ServiceNow account.
66. Select Allow.
67. **Optional:** If you have any other non-production instances (staging, etc.), create a credential record on that instance for production using steps 54-66.

## What to do next

Now that you've created all of the credential records connecting your instances, you can use those records to configure your pipeline environments. For more information, see [Configure your pipeline environments](https://servicenow-prod.fluidtopics.net/hJxuurdVY0ikEtekdvTA3Q "Set up your App Engine Studio (AES) production and non-production (for example, development, test, and/or staging) environments by adding the URLs and credentials used to access each instance.").

*[\>]: and then


