diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-03-29 15:21:02 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-03-29 15:21:02 -0700 |
commit | 70805eef8076e554f8bd8f29cd296ecb1c1878e4 (patch) | |
tree | db8224b7f9a8f3b79a1fd5e2159f68d3f4e37c0e /imap | |
parent | 728f1fa8f251f74f4934f6a6401b7c4b9984e712 (diff) |
Change IMAP to try oauthbearer first.
$imap_authenticators says if it is unset, the authenticators from
most-secure to secure will be tried. It makes sense for oauthbearer
to come first, like with POP.
To make this change backwards compatible, it depends on the previous
commit, which changed imap_auth_oauth() to return IMAP_AUTH_UNAVAIL if
oauth is not configured or explictily requested.
Diffstat (limited to 'imap')
-rw-r--r-- | imap/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/auth.c b/imap/auth.c index 1b26077a..d4755ae7 100644 --- a/imap/auth.c +++ b/imap/auth.c @@ -29,6 +29,7 @@ #include "auth.h" static const imap_auth_t imap_authenticators[] = { + { imap_auth_oauth, "oauthbearer" }, #ifdef USE_SASL { imap_auth_sasl, NULL }, #else @@ -42,7 +43,6 @@ static const imap_auth_t imap_authenticators[] = { { imap_auth_cram_md5, "cram-md5" }, #endif { imap_auth_login, "login" }, - { imap_auth_oauth, "oauthbearer" }, { NULL, NULL } }; |