Property | Type | Description | |
---|---|---|---|
OAuth2Authenticator | System | ||
RequestAccessTokenAsync | string>>.Task |
Method | Description | |
---|---|---|
GetInitialUrlAsync ( ) : Task |
Method that returns the initial URL to be displayed in the web browser.
|
|
OAuth2Authenticator ( string clientId, string scope, |
Initializes a new Xamarin.Auth.OAuth2Authenticator that authenticates using implicit granting (token).
|
|
OAuth2Authenticator ( string clientId, string clientSecret, string scope, |
Initializes a new instance Xamarin.Auth.OAuth2Authenticator that authenticates using authorization codes (code).
|
Method | Description | |
---|---|---|
OnPageEncountered ( |
Raised when a new page has been loaded.
|
|
OnRedirectPageLoaded ( |
Raised when a new page has been loaded.
|
|
OnRetrievedAccountProperties ( string>.IDictionary |
Event handler that is fired when an access token has been retreived.
|
|
RequestAccessTokenAsync ( string>.IDictionary |
Asynchronously makes a request to the access token URL with the given parameters.
|
Method | Description | |
---|---|---|
OAuth2Authenticator ( |
||
RequestAccessTokenAsync ( string code ) : string>>.Task |
Asynchronously requests an access token with an authorization code. Implements: http://tools.ietf.org/html/rfc6749#section-4.1 |
public OAuth2Authenticator ( string clientId, string scope, |
||
clientId | string | /// Client identifier. /// |
scope | string | /// Authorization scope. /// |
authorizeUrl | /// Authorize URL. /// | |
redirectUrl | /// Redirect URL. /// | |
getUsernameAsync | GetUsernameAsyncFunc | /// Method used to fetch the username of an account /// after it has been successfully authenticated. /// |
return | System |
public OAuth2Authenticator ( string clientId, string clientSecret, string scope, |
||
clientId | string | /// Client identifier. /// |
clientSecret | string | /// Client secret. /// |
scope | string | /// Authorization scope. /// |
authorizeUrl | /// Authorize URL. /// | |
redirectUrl | /// Redirect URL. /// | |
accessTokenUrl | /// URL used to request access tokens after an authorization code was received. /// | |
getUsernameAsync | GetUsernameAsyncFunc | /// Method used to fetch the username of an account /// after it has been successfully authenticated. /// |
return | System |
protected OnPageEncountered ( |
||
url | /// URL of the page. /// | |
query | string>.IDictionary | /// The parsed query of the URL. /// |
fragment | string>.IDictionary | /// The parsed fragment of the URL. /// |
return | void |
protected OnRedirectPageLoaded ( |
||
url | /// URL of the page. /// | |
query | string>.IDictionary | /// The parsed query string of the URL. /// |
fragment | string>.IDictionary | /// The parsed fragment of the URL. /// |
return | void |
protected OnRetrievedAccountProperties ( string>.IDictionary |
||
accountProperties | string>.IDictionary | /// The retrieved account properties /// |
return | void |
protected RequestAccessTokenAsync ( string>.IDictionary |
||
queryValues | string>.IDictionary | The parameters to make the request with. |
return | string>>.Task |