C# Class WindowsAzure.Acs.Oauth2.Client.WinRT.SimpleOAuth2Client

SimpleOAuth2Client.
Mostra file Open project: maartenba/WindowsAzure.Acs.Oauth2

Public Methods

Method Description
AppendAccessTokenToAsync ( HttpClient client ) : System.Threading.Tasks.Task

Appends the access token to.

AuthorizeAsync ( string refreshToken ) : System.Threading.Tasks.Task

Authorizes the specified refresh token.

BuildAuthorizationUri ( ) : Uri

Builds the authorization URI.

SimpleOAuth2Client ( Uri authorizeUri, Uri accessTokenUri, string clientId, string clientSecret, string scope, Uri redirectUri ) : System

Initializes a new instance of the SimpleOAuth2Client class.

Private Methods

Method Description
BuildAccessTokenRequest ( string refreshToken ) : AccessTokenRequest

Method Details

AppendAccessTokenToAsync() public method

Appends the access token to.
public AppendAccessTokenToAsync ( HttpClient client ) : System.Threading.Tasks.Task
client System.Net.Http.HttpClient The client.
return System.Threading.Tasks.Task

AuthorizeAsync() public method

Authorizes the specified refresh token.
public AuthorizeAsync ( string refreshToken ) : System.Threading.Tasks.Task
refreshToken string The refresh token.
return System.Threading.Tasks.Task

BuildAuthorizationUri() public method

Builds the authorization URI.
public BuildAuthorizationUri ( ) : Uri
return System.Uri

SimpleOAuth2Client() public method

Initializes a new instance of the SimpleOAuth2Client class.
public SimpleOAuth2Client ( Uri authorizeUri, Uri accessTokenUri, string clientId, string clientSecret, string scope, Uri redirectUri ) : System
authorizeUri System.Uri The authorize URI.
accessTokenUri System.Uri The access token URI.
clientId string The client id.
clientSecret string The client secret.
scope string The scope.
redirectUri System.Uri The redirect URI.
return System