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

SimpleOAuth2Client.
Afficher le fichier Open project: maartenba/WindowsAzure.Acs.Oauth2 Class Usage Examples

Méthodes publiques

Méthode Description
AppendAccessTokenTo ( HttpWebRequest webRequest ) : void

Appends the access token to.

Authorize ( string refreshToken = null ) : void

Authorizes the specified refresh token.

BuildAuthorizationUri ( ) : Uri

Builds the authorization URI.

GetAccessToken ( ) : string

Gets the access token.

SimpleOAuth2Client ( Uri authorizeUri, Uri accessTokenUri, string clientId, string clientSecret, string scope, Uri redirectUri, ClientMode mode = ClientMode.ThreeLegged ) : System

Initializes a new instance of the SimpleOAuth2Client class.

Private Methods

Méthode Description
AuthorizeTwoLegged ( ) : void
AuthorizeWithACS ( string refreshToken = null ) : void
BuildAccessTokenRequest ( string refreshToken ) : AccessTokenRequest
BuildAuthorizationCodeRequest ( ) : AccessTokenRequest

Method Details

AppendAccessTokenTo() public méthode

Appends the access token to.
public AppendAccessTokenTo ( HttpWebRequest webRequest ) : void
webRequest System.Net.HttpWebRequest The web request.
Résultat void

Authorize() public méthode

Authorizes the specified refresh token.
public Authorize ( string refreshToken = null ) : void
refreshToken string The refresh token.
Résultat void

BuildAuthorizationUri() public méthode

Builds the authorization URI.
public BuildAuthorizationUri ( ) : Uri
Résultat System.Uri

GetAccessToken() public méthode

Gets the access token.
public GetAccessToken ( ) : string
Résultat string

SimpleOAuth2Client() public méthode

Initializes a new instance of the SimpleOAuth2Client class.
public SimpleOAuth2Client ( Uri authorizeUri, Uri accessTokenUri, string clientId, string clientSecret, string scope, Uri redirectUri, ClientMode mode = ClientMode.ThreeLegged ) : 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.
mode ClientMode
Résultat System