|
Ditto
1.0.13
|
Log in to a remote authentication service, using an Online identity.
More...
Public Member Functions | |
| async Task< DittoError > | LoginWithToken (string token, string provider) |
| Log in to Ditto with a third-party token. More... | |
| async Task< DittoError > | LoginWithCredentials (string username, string password, string provider) |
| Log in to Ditto with a username and password. More... | |
| bool | IsAuthenticated () |
Query whether Ditto has a valid authentication token. This will only be true when using an Online identity, after a successful login. If the authentication token is allowed to expire then it will return false instead. More... | |
Properties | |
| string? | UserId [get] |
| Gets the currently logged-in user ID. More... | |
Log in to a remote authentication service, using an Online identity.
|
inline |
Query whether Ditto has a valid authentication token. This will only be true when using an Online identity, after a successful login. If the authentication token is allowed to expire then it will return false instead.
|
inline |
Log in to Ditto with a username and password.
| username | The username component of the credentials used for log in. |
| password | The password component of the credentials used for log in. |
| provider | The name of the authentication provider. |
DittoError if the login attempt failed, otherwise null.
|
inline |
Log in to Ditto with a third-party token.
| token | The authentication token required to log in. |
| provider | The name of the authentication provider. |
DittoError if the login attempt failed, otherwise null.
|
get |
Gets the currently logged-in user ID.
This will be null if there is no valid authentication or Online mode is not being used.