Not receiving OAuth Refresh Token
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2024 06:38 PM
When we manually renew the "Access Token" I am only getting the "Access Token" renewed. My understanding is that both "Access Token", "Refresh Token" are to be renewed. Because of not having "Refresh Token" we have to manually renew "Access Token" as the expiry time on these "Access Token" are short (1 hr. only).
When discussed this with Azure team, they are saying that we don't need to configure anything in ServiceNow "Application Registries" for the field "Refresh Token URL"
Appreciate any help with this one. Thank you!
Regards
Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2024 10:16 AM
Hi @Kumar122
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.
By doing the below steps refresh token gets generated and the expiration date can be extended accordingly.
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.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2024 01:47 PM
Hi @Sujatha V M,
As suggested I ran the Script Include (with highlighted modifications) but I don't see "Refresh Token" created. I must be doing something wrong?
Appreciate your help!
Regards
Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2024 08:43 PM
Try to re enter the client ID and secret credentials again and test the connection again.
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2024 09:41 PM
Hi @Sujatha V M
The Client ID, Secret credential are correct as I am able to get the "Access Token" but not "Refresh Token". Thank you!
Regards
Kumar