SMTPClientSession: added support for XOAUTH2 authentication

This commit is contained in:
Guenter Obiltschnig
2015-12-14 22:29:11 +01:00
parent 910e2f3f29
commit 899e5084e9
2 changed files with 25 additions and 1 deletions

View File

@@ -52,7 +52,8 @@ public:
AUTH_CRAM_MD5,
AUTH_CRAM_SHA1,
AUTH_LOGIN,
AUTH_PLAIN
AUTH_PLAIN,
AUTH_XOAUTH2
};
explicit SMTPClientSession(const StreamSocket& socket);
@@ -184,6 +185,7 @@ protected:
void loginUsingCRAM(const std::string& username, const std::string& method, Poco::DigestEngine& hmac);
void loginUsingLogin(const std::string& username, const std::string& password);
void loginUsingPlain(const std::string& username, const std::string& password);
void loginUsingXOAUTH2(const std::string& username, const std::string& password);
DialogSocket& socket();
private: