This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Dec 8, 2015, 9:26 PM
37 Posts

Trying to connect to Google APIs via OAuth 2.0

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: google,api programming,oauth
  • Replies: 0

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!

 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal