apps-script-oauth2
apps-script-oauth2 copied to clipboard
An OAuth2 library for Google Apps Script.
Hello, When using the new Apps Script runtime (Google Chrome V8) on an alpha domain, the libray does not work anymore. I got this error : `Library with identifier OAuth2...
Using a cache seems to make it unreliable to get tokens in at least the following situation: - Two different services created - Services used within a library - Library...
So I am having an issue where I get a bearer token that is impersonating a user but then the user changed their password which invalidates the bearer token. So...
It seems currently that native app flow (`grant_type=authorization_code`) [1] is supported: https://github.com/googleworkspace/apps-script-oauth2/blob/eebdf7884b019dac5160f6554059bf9537fda1cd/src/Service.js#L404-L410 But not other types, such as device flow (`grant_type=urn:ietf:params:oauth:grant-type:device_code`) [2]. 1. https://developers.google.com/identity/protocols/oauth2/native-app 2. https://developers.google.com/identity/sign-in/devices
Hi, I'm working on a gmail addon and I can't automaticaly close my popup that say that the connexion worked. I tried 2 methods: - window.top.close(), which seems to not...
…for Service Account authorization. Some Service Account implementations ([such as Box.com](https://developer.box.com/guides/authentication/jwt/without-sdk/)) require additional JWT headers and signature encodings (for example, encodings for encrypted private keys that require a passphrase) not...
Hey team, I found a problem that apps-script-oauth2 library doesn't validate the link between state value and User sessions. As a result, CSRF protection (which used a state as a...
Chanded DocumentApp to SpreadsheetApp.getUi().showSidebar(page); This script typically IMO would be used within the Google Sheets app and the DocumentApp.getUi does not work in sheets.
Normally, my code using this library runs perfectly fine, but maybe once every month or couple of months, I get this issue referencing the Storage.gs and Service.gs files in the...
I am attempting to use this library for a GMail add-on. My code is essentially a copy/past of the `Non-Google OAuth configuration example` from here: https://developers.google.com/gmail/add-ons/how-tos/non-google-services - which pretty much...