Skip to content

[New Feature] Support for GMail OAuth tokens #365

@ivelin

Description

@ivelin

Currently apprise supports gmail via App Passwords. However Google does not recommend use of app passwords any more.

Instead it recommends App Authorization via OAuth 2.0 or Sign In with Google.

https://support.google.com/accounts/answer/185833?hl=en

Rclone is a reference example of an open source project that uses App Authorization to access Google APIs (gdrive) on behalf of a Google Account user.

https://rclone.org/drive/

The specific use case that prompted this feature request is this: IoT device (Ambianic edge) sending email notification to users, who manage their IoT device via an UI app (Ambianic UI). Via the Google App Authorization flow , users can enable gmail notifications with a few clicks. The UI app will push the gmail authorization code to the IoT device, which will in turn pass it to apprise to obtain a gmail access token to be used in future notification requests from that device.

Google API documentation with the details of this flow:

https://developers.google.com/gmail/api/auth/web-server

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions