No refresh token is generated

d-aizawa
Kilo Sage

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

find_real_file.png

 

HTTP Methods Test

find_real_file.png

 

Manage Token

find_real_file.png

 

 

7 REPLIES 7

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.

 

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.

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.