How to know my instance client secret and client id

Rithvik
Tera Contributor

How to know my instance client secret and client id..

I'm integrating two service now instances, so I want to provide "one instance client id and client secret" to the another instance, so please help me how to get those.

.

.

.

@Ankur Bawiskar @shloke04 

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

Hi @Rithvik 

You need to generate those details in your target instance. Navigate to the module "Application Registry" as shown below and click on New button:

find_real_file.png

Now select "Create an OAuth API endpoint for external clients" in your Target ServiceNow instance as shown below:

find_real_file.png

Now fill out the form, Like Name.

Client ID is automatically generated and client secret you can leave it as blank and just save the form. Once you save the form , ServiceNow will automatically create it for you as shown below:

Before creation on click of New:

find_real_file.png

After Saving the form , both are visible which you need:

find_real_file.png

This way you can create your Client Secret and Client ID in your target instance.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

4 REPLIES 4

Dan H
Tera Guru

I believe you have this requirement because you are trying to consume ServiceNow in another service/website/tool?

Have you configured OAuth in ServiceNow for this?

You get Client Id and Client Secret in System OAuth > Application Registry.

But this requires configuring OAuth.

https://docs.servicenow.com/bundle/sandiego-platform-administration/page/administer/security/task/t_CreateEndpointforExternalClients.html?cshalt=yes

Rithvik
Tera Contributor
No, I just want to integrate two servicenow environments using oauth authentication

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Did you setup OAuth registry in the instance whose API would be consumed?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

shloke04
Kilo Patron

Hi @Rithvik 

You need to generate those details in your target instance. Navigate to the module "Application Registry" as shown below and click on New button:

find_real_file.png

Now select "Create an OAuth API endpoint for external clients" in your Target ServiceNow instance as shown below:

find_real_file.png

Now fill out the form, Like Name.

Client ID is automatically generated and client secret you can leave it as blank and just save the form. Once you save the form , ServiceNow will automatically create it for you as shown below:

Before creation on click of New:

find_real_file.png

After Saving the form , both are visible which you need:

find_real_file.png

This way you can create your Client Secret and Client ID in your target instance.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke