Ditto
1.0.9
|
Public Member Functions | |
void | login_with_token (std::string token, std::string provider, std::function< void(std::unique_ptr< DittoError >)> login_handler) |
Log in to Ditto with a third-party token. More... | |
void | login_with_credentials (std::string username, std::string password, std::string provider, std::function< void(std::unique_ptr< DittoError >)> login_handler) |
Log in to Ditto with a username and password. More... | |
void ditto::Authenticator::login_with_credentials | ( | std::string | username, |
std::string | password, | ||
std::string | provider, | ||
std::function< void(std::unique_ptr< DittoError >)> | login_handler | ||
) |
Log in to Ditto with a username and password.
[in] | username | the username component of the credentials used for log in. |
[in] | password | the password component of the credentials used for log in. |
[in] | provider | the name of the authentication provider. |
[in] | login_handler | a lambda that will get called when the login attempt has completed. |
void ditto::Authenticator::login_with_token | ( | std::string | token, |
std::string | provider, | ||
std::function< void(std::unique_ptr< DittoError >)> | login_handler | ||
) |