Closed matthewbednarski closed 6 years ago
I believe this happens when you choose Web Application
instead of Other
as the Application type
of your credentials.
As described in this project's README, you should choose Other
for your Credentials Application Type
:
So you can fix your error just by regenerating Credentials with an Application Type
of Other
, and running gapps auth
again.
I don't think this project should support Credentials meant for Web Apps, since it's a CLI tool afterall.
I doubt the above "fix" is a hassle for users.
If anything, it pushes them to have separate Credentials for each platform that uses the API, eventually allowing them to revoke access to one but not the other.
I suggest you close this PR since the tool is working as expected imho.
Thanks. It is clear to me now. I was using the default credential, which is for running the script.
Closing this as suggested by @rodyhaddad . @laseryuan if you are still interesting in merging this please reopen. I am not sure what are the implications of allowing web credentials but could take a look if needed.
Add a check for
web
property in thecredentials
object, in case there is noinstalled
property.With my GApps account from my company the following command continued to fail:
Here is the stack trace: