-
Notifications
You must be signed in to change notification settings - Fork 70
Change path to credentials file #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
My question overlaps with @oshliaer's first two bullet points. For example, if a developer is working on two (or more) projects simultaneously and wants to be able |
If you are working on multiple projects under the same user account, then you only have to do the auth process once. If you are doing simultaneous projects under different user accounts, then you have to have an OAuth authorization for each, which isn't currently supported (but could be investigated). As for the path issue, auth is supposed to be global; i.e. the -g install can take advantage of auth that only needs to be done once. That requires some "common" location, and the user home seemed to be the most logical. Alexander - Do you have any thoughts as to implementation of an alternate location? |
Hi @hess-g - any ideas about how to support simultaneous projects under different user accounts? |
That's tricky. Neither of the two possible execution contexts (global install, or local install / "require" use in a node task runner) have access to your "intended" user ID. I'll have to don the thinking cap for a bit on this one... As you noted above, the workaround today (worst case, I know) is that you have to do the process auth before you start working against a particular project context. Yes, that would make it a bit more painful if you have to rapidly switch contexts, but it is possible. |
Ok. Let me explain the goal. My npm-instalation is But I like to use |
That looks good. Can you submit a PR with that change? |
@hess-g , I can do it. My fears are that I'm using |
Yeah, I see that now. The main challenge is that, whatever the implementation, it needs to support both the run-style (command line exec of gapps) and node js (var x = require("node-google-apps-script"). Some more thinking is needed here...but your gist did spark some ideas. |
Here are my thoughts on the matter.
[1]: Though we don't do this at the moment, in the long run we want to be able to store multiple file IDs in the gapps.config.json so that we can handle having, e.g., separate testing and production documents. This is discussed a bit in the discussion in PR #28 |
Created for my own deployment tooling needs, minimal multi-env support: PR #48 |
Thanks @jruusu! |
Hi!
defaults.STORAGE_FILE
there ?I work with local installations. I can not use the% USERPATH%.
Your apps is great & helpful. Thanks.
The text was updated successfully, but these errors were encountered: