The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Need help on oAuth token which is getting expire

shaik_irfan
Tera Guru

Hi,

 

currently i am working on integration with oAuth configuration and everything is working fine. 

 

Now i see a message "OAuth Refresh token is available and will expire at 2019-11-24 17:12:29.

Can anyone please help me how to make auto refresh the token ?

 

find_real_file.png

1 ACCEPTED SOLUTION
7 REPLIES 7

Ashutosh Munot1
Kilo Patron
Kilo Patron

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shaik,

Every time when you hit this endpoint for getting the access token you would get the refresh token

http://<instance-name>.service-now.com/oauth_token.do

I would suggest to use access_token instead of refresh_token whenever you hit the actual endpoint

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Ankur,

 

Can you please help where do i need to set this ?

Hi Shaik,

so you must be having the actual endpoint to hit; before hitting that you need to hit the above endpoint to get the access token and then get that access token in actual endpoint

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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