Ditto  1.0.9
Public Member Functions | List of all members
DittoSDK.DittoAuthenticator Class Reference

Log in to a remote authentication service, using an Online identity. More...

Public Member Functions

async Task< DittoErrorLoginWithToken (string token, string provider)
 Log in to Ditto with a third-party token. More...
 
async Task< DittoErrorLoginWithCredentials (string username, string password, string provider)
 Log in to Ditto with a username and password. More...
 

Detailed Description

Log in to a remote authentication service, using an Online identity.

Member Function Documentation

◆ LoginWithCredentials()

async Task<DittoError> DittoSDK.DittoAuthenticator.LoginWithCredentials ( string  username,
string  password,
string  provider 
)
inline

Log in to Ditto with a username and password.

Parameters
usernameThe username component of the credentials used for log in.
passwordThe password component of the credentials used for log in.
providerThe name of the authentication provider.
Returns
A DittoError if the login attempt failed, otherwise null.

◆ LoginWithToken()

async Task<DittoError> DittoSDK.DittoAuthenticator.LoginWithToken ( string  token,
string  provider 
)
inline

Log in to Ditto with a third-party token.

Parameters
tokenThe authentication token required to log in.
providerThe name of the authentication provider.
Returns
A DittoError if the login attempt failed, otherwise null.