No refresh token is generated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2022 06:59 PM
Hi.
I was investigating whether ServiceNow and Google Calendar could connect using the Google Cloud Platform service account key.
I registered the key information in ServiceNow in the form of JWT and confirmed that the access token was obtained and Google Caledar was connected.
However, the refresh token I expected to be generated has not been generated.
If you don't have a refresh token, you have to press the "Get OAuth Token" button once an hour, which is quite difficult.
※ If there is any mistake in my recognition at this point, please point it out.
If anyone knows the cause, such as a setting omission, would you please let me know?
Thank you!
Rest Message
HTTP Methods Test
Manage Token
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-24-2024 06:59 AM
Yes, google profile is service account. The Refresh token is for 3 months and access token is for 1 hour. If I regenerate the refresh token both refresh and access token reset.
Noticed one thing, that access token do generates after expiration may be for same day where we have a valid token. But if I trigger a transaction tomorrow the access token won't generate. I am not sure on the criteria when the access token is not generated...is this after some hours after expiration or next day, still trying to figure that out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2024 10:57 PM
Hi @Kieran Anson ,
The access token generated gets extended for the same day and system won't generate another access token next day. We need to get a new token (both refresh and access token) generated everyday.
Please suggest if I am missing anything.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2025 08:39 AM
I haven't seen the behaviour you're experiencing. As long as the refresh token isn't expired, you should be able to request new access tokens continuously.