what is maximum expiry limit for access token and refresh token of oauth 2.0

supriya pratapa
Tera Guru
 
1 ACCEPTED SOLUTION

Robbie
Kilo Patron
Kilo Patron

Hi @supriya pratapa,

 

ServiceNow Token Expiration and Validity is as follows, however, please note whilst these values can be set manually and extended as you so wish (For example you can push out the value for 2 or 3 years plus), I would not recommend this and I would steer you towards best practice and your organizations security standards.

 

  • 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.

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.


Thanks, Robbie

View solution in original post

2 REPLIES 2

SN_Learn
Kilo Patron
Kilo Patron

Hi @supriya pratapa ,

 

  • 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.

Please have a look at the Doc: Manage OAuth tokens 

 

Please mark helpful and accept my solution if it is helps you any way.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

Robbie
Kilo Patron
Kilo Patron

Hi @supriya pratapa,

 

ServiceNow Token Expiration and Validity is as follows, however, please note whilst these values can be set manually and extended as you so wish (For example you can push out the value for 2 or 3 years plus), I would not recommend this and I would steer you towards best practice and your organizations security standards.

 

  • 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.

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.


Thanks, Robbie