I want to get an access token automatically

Ereshkigal
Tera Contributor

Hi.

I'm investigating to integrate Google Calendar and ServiceNow.

The requirement is to connect with a service account key instead of the Outh 2.0 Client ID.

After some trial and error, I succeeded in getting an access token.

To get an Access token, you need to select "Get Outh Token", but it expires in 1 hour, so I feel it is a hassle.

To solve this,

  1. schedule this UI Action with a script
  2. gets a refresh token

Which is better?

Thank you!

find_real_file.png

6 REPLIES 6

Hi,

I haven't used JWT so not much aware.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Is that so.

I am also learning JWT. I would like to read the materials a little more, but if you know something, would you please link information to this thread?

Thank you!