-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Gmail API "Delegation denied" #88
Comments
Hi, thanks! did you use literally |
Ah, I see now that that's not the example I used in the README, so you probably did not use that literally. Does it work if you change the name back to the account? Are you sure that it is the same account that you authenticated with? If you have several accounts you would probably get a list, and if you select a different account than the one you specified on the command line you would get problems. |
No, I did not use When I did the oauth, I did indeed get a list of accounts, but I did select the corresponding one. Looking at the error message today, and trying a few more things, I think it is related to the |
Ali Lown writes on July 28, 2018 15:20:
No, I did not use ***@***.***` literally :)
Right -- perhaps not my best suggestion...
When I did the oauth, I did indeed get a list of accounts, but I did select the corresponding one.
I even tried using `gmi auth -f` to re-do this, and it makes no difference.
Looking at the error message today, and trying a few more things, I think it is related to the ***@***.***` vs ***@***.***` distinction: as using the `me` or the ***@***.***` form works, but the ***@***.***` returns the error message about delegation given in the OP.
Hm, interesting. So `[email protected]` works? Is this by any
chance what you originally used to create the account with?
|
That would be my guess too (it has been enough years for me to no longer be too sure). (Presumably, this means that if you tried using the I suppose it may be possible to extend gmailieer to try the other form automatically in the event of a "Delegation denied" 403 response for one of them - though whether this error is used by the API to indicate anything else... |
Ali Lown writes on July 28, 2018 17:55:
> Hm, interesting. So ***@***.***` works? Is this by any chance what you originally used to create the account with?
That would be my guess too (it has been enough years for me to no longer be too sure).
(Presumably, this means that if you tried using the ***@***.***` form, you would get the same (inverse) result about delegation being denied for your ***@***.***` form.)
I suppose it may be possible to extend gmailieer to try the other form automatically in the event of a "Delegation denied" 403 response for one of them - though whether this error is used by the API to indicate anything else...
I am leaning more against providing a meaningful error and suggestion, or
at least list the issue in the `caveats` section in the README. Changing
the provided e-mail seems invasive.
|
That also seems reasonable. I shall leave it to you to mark this as "closed" now, or later. |
Ali Lown writes on July 28, 2018 18:40:
> I am leaning more against providing a meaningful error and suggestion, or at least list the issue in the `caveats` section in the README.
That also seems reasonable. I shall leave it to you to mark this as "closed" now, or later.
Went for a note in the README. Closing.
|
Hi,
I am using commit b35f0e3.
After following the instructions in the readme, using the default api credentials, and performing a
gmi init [email protected]
. Having succesfully followed the oauth flow to generate some valid credentials. I then found myself unable to then perform agmi pull
, instead getting the below 403.Some searching around suggested the use of the magic user id "me" instead, to force the api to refer to the default account referenced by the oauth credentials.
Manually editing the
.gmailieer.json
file to have"account":"me"
instead of"account":"[email protected]"
, did indeed resolve the above error - though I don't fully understand why.As I couldn't find mention of this in the readme/wiki/existing issues, I thought you may be interested to know, in case this can be automatically detected/performed/worked-around?
Thanks
P.S. Here are some more stats from a test account, in case you wish to add another data-point to the wiki
The text was updated successfully, but these errors were encountered: