aerc/lib
Frode Aannevik b0eaf5191c Support imaps with oauthbearer authentication (Gmail)
imaps+oauthbearer://user:token@host?token_endpoint=...

 - the config Source password is used as access token if
   no token_endpoint parameter is set
 - the config Source password is used as refresh token if
   token_endpoint parameter is set, and used to exchange
   with an access token

The implementation has only been tested with Gmail.

    source = imaps+oauthbearer://{username}:{refersh_token}@imap.gmail.com:993? \
    client_id=XX&\
    client_secret=XX&\
    token_endpoint=https%3A%2F%2Faccounts.google.com%2Fo%2Foauth2%2Ftoken

client credentials created with

    https://console.developers.google.com/apis/credentials

refresh token created with

    https://github.com/google/gmail-oauth2-tools/blob/master/python/oauth2.py

rel: https://todo.sr.ht/~sircmpwn/aerc2/42
2019-07-11 19:36:14 -04:00
..
ui Implement basic tab completion support 2019-06-29 14:24:19 -04:00
dirstore.go Sort out dirstore once and for all 2019-07-04 12:31:27 -04:00
indexformat.go Factor IMAP-specific structs out of UI models 2019-07-08 16:06:28 -04:00
msgstore.go Fix re-opening of expired pipe tabs 2019-07-08 18:32:31 -04:00
oauthbearer.go Support imaps with oauthbearer authentication (Gmail) 2019-07-11 19:36:14 -04:00
open.go Use "open" instead of "xdg-open" on Darwin systems 2019-07-04 10:58:33 -04:00
open_darwin.go Use "open" instead of "xdg-open" on Darwin systems 2019-07-04 10:58:33 -04:00