Commit f953e1ba authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Add support for XOAUTH2 authentication method

XOAUTH2 is used by Gmail to authenticate via OAuth tokens instead of regular
username + password.

This adds support for XOAUTH2 to KIMAP. However cyrus-sasl does not support
XOAUTH2, so this won't work out of the box, unless a 3rd-party SASL plugin
is provided.
parent 93df6ad9
......@@ -572,6 +572,8 @@ void LoginJob::setAuthenticationMode(AuthenticationMode mode)
break;
case Anonymous: d->authMode = QLatin1String("ANONYMOUS");
break;
case XOAuth2: d->authMode = QLatin1String("XOAUTH2");
break;
default:
d->authMode = QLatin1String("");
}
......
......@@ -56,7 +56,8 @@ class KIMAP_EXPORT LoginJob : public Job
DigestMD5,
NTLM,
GSSAPI,
Anonymous
Anonymous,
XOAuth2
};
enum ErrorCode {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment