OAuth for Scripted REST API(Inbound to Servicenow)

ojhagargi
Tera Contributor

I have enabled OAuth for Servicenow Scripted REST API, however my client wants to generate new Access token every time they hit "token" endpoint.

Do we have such provision in servicenow?

6 REPLIES 6

@ojhagargi 

ask them to hit oauth_token.do endpoint before the actual API call and they should be able to get the access token.

are they not able to do that now?

It's just that within 30mins they will get the same access token again.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

ojhagargi
Tera Contributor

They are generating token in AWS (at specific interval) and calling Servicenow API from their Application.