Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How does ServiceNow auto generates access tokens after the first access token is manually generated

Lokesh5
Tera Contributor

If the grant type is auth code:

1. How does serviceNow auto generates new access tokens after they get expired based on the valid refresh token ?

 

1 ACCEPTED SOLUTION

sujitha16
Kilo Patron

Hi @Lokesh5 , 

Token Expiration and Validity is as follows:

  • Access Token: By default, an instance issues access tokens with a 30-minute lifespan in the scenario where the instance is the OAuth provider.
  • Refresh Token: By default, an instance issues refresh tokens with a 100-day lifespan in the scenario where the instance is the OAuth provider.

Link : https://docs.servicenow.com/bundle/washingtondc-platform-security/page/administer/security/task/t_Ma...

By doing the below steps refresh token gets generated and the expiration date can be extended accordingly.

SujathaVM_1-1709222640837.png

Reference : https://www.servicenow.com/community/architect-forum/google-calendar-integration-with-servicenow/td-...

 

Please mark this as helpful and accept it as a solution if this resolves your query.

 

Thanks, 

Sujatha V.M.

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

View solution in original post

3 REPLIES 3

sujitha16
Kilo Patron

Hi @Lokesh5 , 

Token Expiration and Validity is as follows:

  • Access Token: By default, an instance issues access tokens with a 30-minute lifespan in the scenario where the instance is the OAuth provider.
  • Refresh Token: By default, an instance issues refresh tokens with a 100-day lifespan in the scenario where the instance is the OAuth provider.

Link : https://docs.servicenow.com/bundle/washingtondc-platform-security/page/administer/security/task/t_Ma...

By doing the below steps refresh token gets generated and the expiration date can be extended accordingly.

SujathaVM_1-1709222640837.png

Reference : https://www.servicenow.com/community/architect-forum/google-calendar-integration-with-servicenow/td-...

 

Please mark this as helpful and accept it as a solution if this resolves your query.

 

Thanks, 

Sujatha V.M.

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

sandhya64u57jtj
Tera Contributor

@sujitha16 
Access token is valid for an hour , in that case how can we auto generate new access token using refresh token?

GargiO
Tera Contributor

I have case where my token provider is third party application. I need to know if we need to manually create a refresh token after 90 days?? if the token is expired??