What happens after oAuth refresh token expiries

Renu9
Tera Contributor

Hi All,

We are connecting to a third party using oauth authentication. We have set a refresh token life span as 8640000. So after 100 days, the token gets expires as per my understanding.

What happens after the token is expired? Will it generate a new token with a new expiry date without ServiceNow team intervention? 

1 ACCEPTED SOLUTION

Hi,

correct they need to use username, password again with correct grant type to get new refresh token and access token

Regards
Ankur

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

View solution in original post

7 REPLIES 7

palanikumar
Giga Sage

Hi,

You need to regenerate new token and update third party with new token.

 

Thank you,

Palani

Thank you,
Palani

Hi,

So regenerating a new token means creating a new oAUth profile in Application registry and providing all those details and then third party should update all the details ?

 

Kindly suggest me how can I check in PDI ?

 

 

 

Renu9
Tera Contributor
Hi Ankur, Could you please help me letting know the query. Refresh token life span is of 100 days. So after 100 days will third party would be able to connect with servicenow directly and so a record gets created in manage token with a new expiry date? Or Again a new token in application registry should be created and give the client I'd client secret to third party to connect?

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

So ServiceNow is the API provider and 3rd party is consuming it.

If yes then they need to generate the token before it expires. nothing to do within ServiceNow

Regards
Ankur

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