Commit 50bd2479 authored by Kishore Gopalakrishnan's avatar Kishore Gopalakrishnan
Browse files

Set oauth2 authentication type for smtp

parent 55fd9363
Pipeline #188924 passed with stage
in 1 minute and 8 seconds
......@@ -176,6 +176,9 @@ void PersonalDataPage::configureSmtpAccount()
case Ispdb::GSSAPI:
t->setAuthenticationType(QStringLiteral("gssapi"));
break;
case Ispdb::OAuth2:
t->setAuthenticationType(QStringLiteral("oauth2"));
break;
case Ispdb::ClientIP:
break;
case Ispdb::NoAuth:
......
......@@ -32,6 +32,7 @@ static const StringValueTable<MailTransport::Transport::EnumAuthenticationType>
{"ntlm", MailTransport::Transport::EnumAuthenticationType::NTLM},
{"apop", MailTransport::Transport::EnumAuthenticationType::APOP},
{"clear", MailTransport::Transport::EnumAuthenticationType::CLEAR},
{"oauth2", MailTransport::Transport::EnumAuthenticationType::XOAUTH2},
{"anonymous", MailTransport::Transport::EnumAuthenticationType::ANONYMOUS}};
static const int authenticationTypeEnumSize = sizeof(authenticationTypeEnum) / sizeof(*authenticationTypeEnum);
......
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