danthareja / node-google-apps-script

[DEPRECATED - use clasp instead] The easiest way to develop Google Apps Script projects
MIT License
353 stars 70 forks source link

Referencing several OAuth2 clients? #65

Open ihommani opened 7 years ago

ihommani commented 7 years ago

Hi, When launching an authentication step with an already existing .gapps folder, we get a message with the impossibility to finish the authentication. That means that to push several appscript projects, it needs to belong to the same Google project. Do we plan to allow several authentications to allow a push on several projects (a prompt being displayed if we need to choose which project we have to push the modifications)

thx!

aurelienshz commented 6 years ago

to push several appscript projects, it needs to belong to the same Google project

More precisely, the account with which you are logged in must have write permission on the Google Script project to which you want to push.

We are talking about two conceptually different features here : one is the ability to authenticate with different accounts, and the other is to be able to push to different projects. I feel like the "pushing to several different projects" feature is more needed (since you could give write access on all your projects to your currently authenticated account using Google's share feature). I might try to put together a PR about this (I need it too :smile: ). Stay tuned! (and any input is of course welcome)

ihommani commented 6 years ago

Yes, you totally get it. Thx!