I have been trying to develop a solution to connect to the Google API's via LotusScript (create contacts and calendar entries from the Notes client).
I've developed solutions previously to obtain an OAuth 2.0 token and then proceed to consume web services, but the Google implementation seems much more complex than others I have used before.
I am referring to the following doco to develop my code:
https://developers.google.com/identity/protocols/OAuth2ServiceAccount
The part that really has me stumped so far is the following:
"Sign the UTF-8 representation of the input using SHA256withRSA (also known as RSASSA-PKCS1-V1_5-SIGN with the SHA-256 hash function) with the private key obtained from the Google Developers Console. The output will be a byte array."
I have obtained all of the necessary credentials from the Google Developers Console.
I have also developed all the logic to post a call to Google and pass all the credentials across in hopes of obtaining the OAuth token.
Unfortunately, I just can't figure out how to properly hash all the credentials into the acceptable format.
I'm pretty stumped with this, and would really appreciate any assistance or a shove in the right direction.
Is this even possible using plain LotusScript, or will I be forced to incorporate some Java logic into my solution?
Has anyone been able to successfully authenticate with Google using LotusScript?
Again, all feedback/assistance/suggestions would be greatly appreciated - Cheers!