googleapitoken
Web icon

GoogleAPIToken

Stable version 1.0.1 (Compatible with OutSystems 11)
Other versions available for 10 and Older
Uploaded
 on 02 July 2019
 by 
5.0
 (8 ratings)
googleapitoken

GoogleAPIToken

Details
GoogleAPIToken is a helper to obtain Google API Authentication Tokens to use with Google Cloud Platform REST APIs. It uses Google API service account with the correspondent private key.
Read more
GoogleAPIToken provides a method to generate an authentication bearer token in Google Cloud Platform services, which can then be used to authenticate REST API calls by sending the temporary token in a HTTP Authorization header, as described in the Google OAuth document article https://developers.google.com/identity/protocols/OAuth2ServiceAccount#callinganapi.

Implementation Details
It uses the Bouncy Castle .NET libraries to generate the RSA+SHA256 signature for JWT, from the PEM private key that exists in the service account JSON file, and obtains the authentication token by invoking Google Api Oauth API.

Return
The return value is a bearer authentication token that can be used in REST API calls to the Google Cloud Platform APIs. The bearer authentication token must be used as an HTTP header, per example:

Authorization: Bearer 1/fFBGRNJru1FQd44AzqT3Zg
Release notes (1.0.1)

Updated component for OutSystems O11

Reviews (1)
by 
2020-06-18
in version 1.0.1
Great component! Handles the generating of a JWT token and authenticates you against the desired scope. Could use some more documentation though.

The Oauth 2.0 playground from google is very useful for all the scopes:

https://developers.google.com/oauthplayground/
Team
Other assets in this category