Google apps script: OAuth2

I am writing a Google Docs add-on in Google apps script. The add-on takes some data from the page and makes an entry in my web app. The problem is that I need to authenticate the user in my web app, which supports OAuth 2.0 and doesn't support OAuth 1.0

Google is very strict in what add-ons are allowed to do. The only way I found to show the authentication dialog to the user is via UrlFetchApp.addOAuthService(serviceName). But this function only supports OAuth 1.0, as I get it.

So the question is: is there a way to authenticate a Google Docs user in my web app via OAuth 2.0?

There is an issue filed on code.google.com asking for that, back from Nov 2011 and not yet resolved (https://code.google.com/p/google-apps-script-issues/issues/detail?id=929). But I hope a workaoround exists.

Answers


Need Your Help

Updating a value within a nested object within Ember.js without using .get() .set()

javascript ember.js

I have the following object structure and I need to get a specific title value and then set it to a new value. I know once you go within a nested object you lose the Ember object .get() and .set()

'vector iterators incompatible'

c++ vector iterator std

std::vector<Enemy*>::iterator it;

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.