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

Sample does not provide working authentication #520

Open
jeffbryner opened this issue Dec 5, 2022 · 0 comments
Open

Sample does not provide working authentication #520

jeffbryner opened this issue Dec 5, 2022 · 0 comments
Assignees

Comments

@jeffbryner
Copy link

Taking this sample and attempting to run it doesn't provide a working result.

Granted there is a note

    TODO(developer) - See https://developers.google.com/identity
    for guides on implementing OAuth2 for the application.

but that doesn't exactly help anyone figure out how to "make it go"

OK so scopes are missing? are they likely

    creds, _ = google.auth.default(scopes=['https://www.googleapis.com/auth/gmail.settings.basic', 'https://www.googleapis.com/auth/gmail.settings.sharing'])

Error returned when adding scopes results in:

An error occurred: <HttpError 403 when requesting https://gmail.googleapis.com/gmail/v1/users/me/settings/sendAs?alt=json returned "Request had insufficient authentication scopes.". Details: "[{'message': 'Insufficient Permission', 'domain': 'global', 'reason': 'insufficientPermissions'}]">

Any clues to how to make this sample work?

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

2 participants