Method | Description | |
---|---|---|
AuthenticateAsync ( string username, string password, |
Acquires an OAuth2.0 access token. An access token is tied to both your application (the client) and an individual Mondo user and is valid for several hours.
|
|
Dispose ( ) : void |
Disposes the underlying HttpClient.
|
|
GetAccessTokenAsync ( string authorizationCode, string redirectUri, |
Exchange this authorization code for an AccessToken, allowing requests to be mande on behalf of a user.
|
|
GetAuthorizeUrl ( string state = null, string redirectUri = null ) : string |
Generates a Mondo OAuth authorization URL based on state and redirect.
|
|
MondoAuthorizationClient ( string clientId, string clientSecret, string baseUri = "https://api.getmondo.co.uk" ) : System |
Initialises a new MondoAuthorizationClient
|
|
RefreshAccessTokenAsync ( string refreshToken, |
Exchange this authorization code for an AccessToken, allowing requests to be mande on behalf of a user.
|
Method | Description | |
---|---|---|
AuthorizeAsync ( string>.Dictionary |
||
MondoAuthorizationClient ( |
Initialises a new MondoAuthorizationClient
|
public AuthenticateAsync ( string username, string password, |
||
username | string | The user’s email address. |
password | string | The user’s password. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. | |
return | Task |
public GetAccessTokenAsync ( string authorizationCode, string redirectUri, |
||
authorizationCode | string | The authorization code. |
redirectUri | string | The URL the user should be redrected back to. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. | |
return | Task |
public GetAuthorizeUrl ( string state = null, string redirectUri = null ) : string | ||
state | string | State which will be passed back to you to prevent tampering. |
redirectUri | string | The URI we will redirect back to after an authorization by the resource owner. |
return | string |
public MondoAuthorizationClient ( string clientId, string clientSecret, string baseUri = "https://api.getmondo.co.uk" ) : System | ||
clientId | string | Your client ID. |
clientSecret | string | Tour client secret. |
baseUri | string | URL of the Mondo API to use, defaults to production. |
return | System |
public RefreshAccessTokenAsync ( string refreshToken, |
||
refreshToken | string | The refresh token. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. | |
return | Task |