Skip to content
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 - Cookie auth issue with Calendar invitation top details missing / Autocomplete /etc.. #17

Open
kamyweb opened this issue Dec 7, 2021 · 1 comment

Comments

@kamyweb
Copy link
Contributor

kamyweb commented Dec 7, 2021

OS: Ubuntu 21.10
Versione: 5.7.0

also reported here with some screenshots https://github.com/meetfranz/franz/issues/2083#issue-1015933386

If I debug correctly all calls to https://*.clients6.google.com reply with 401 http error code and body:

{
  "error": {
    "code": 401,
    "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
    "errors": [
      {
        "message": "Invalid Credentials",
        "domain": "global",
        "reason": "authError",
        "location": "Authorization",
        "locationType": "header"
      }
    ],
    "status": "UNAUTHENTICATED"
  }
}

the call to download calendar that is wrong may be this:
https://clients6.google.com/gmail/v1fpa_gmail_frontend_gwt/users/me/threads/batchListCalendarEvents?alt=protojson&key=xxxxxxxxxxxxxxxx

Also this "endpoints" report the same auth issue:

userlookup
drive
autocomplete

@kamyweb
Copy link
Contributor Author

kamyweb commented Dec 7, 2021

after some search I found all that calls miss this header:

origin: https://mail.google.com

If I add this header to the wrapper curl call, server reply correctly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant