Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to generate access token by using cleint id and client secret?

shabbir5
Tera Guru

Hi All,

 

I am working on ServiceNow to ServiceNow integration , where i created a oauth 2.0 profile (for external files)

 

so for any integration ? once we receive this cleint id and client passord ? what is the next process?

 

how to create a access token ? and what is the length of that access token ?

 

and what is refresh token ?

 

how to see these 2 tokens while makig any HTTP call..

 

so while other systems making a rest call using oAuth 2.0 , acccess token will be passed from the provider to consumer ? 

 

for each and every call access token is same ? or it will different for each call ?

 

Thank you,

Shabbir Shaik

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@shabbir5 Please refer to this article from Ankur https://www.servicenow.com/community/developer-blog/oauth-2-0-with-inbound-rest/ba-p/2278926 it will answer most of your questions related to OAuth integration in ServiceNow.