JWT generation for Google
Greetings!
The application I work with has a need to update a user's google password using a service account and no user intervention other than clicking a link.
I'm in the process of figuring out how to do that from an IRIS server.
I've set up an OAuth 2.0 client with one client configuration, attempting to follow the documentation in https://community.intersystems.com/post/intersystems-iris-open-authoriza... as much as possible.
I also set up an SSL configuration to be used with Google.
I have extremely limited confidence that any of this is set up correctly.
I've also created a service account on google and generated the keys which I've uploaded into the "JSON Web Tokens Settings" on the OAuth 2.0 Client->Server Description page in the portal.
My understanding is that I need to generate a valid JWT to send to Google, at which point they'll send back an access token so I can use that to call the Google API.
Can anyone point me in the right direction as far as generating the JWT to send to Google?
Thanks,
Brian