The CreatorCon Call for Content is officially open! Get started here.

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

Sujatha V M
Kilo Patron
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

2 REPLIES 2

Sujatha V M
Kilo Patron
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

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