C# Class AltitudeAngelWings.ApiClient.Client.ApiOAuthClientHandler

Afficher le fichier Open project: ArduPilot/MissionPlanner Class Usage Examples

Méthodes publiques

Méthode Description
Create ( string authBaseUri, string clientId, string clientSecret, IEnumerable scopes, DotNetOpenAuth.OAuth2.AuthorizationState existingState = null ) : ClientHandlerInfo

Create an HTTP Handler for client only auth.

Create ( string authBaseUri, string clientId, string clientSecret, IEnumerable scopes, DotNetOpenAuth.OAuth2.AuthorizationState existingState, bool requireUserToken, string redirectUri, IAuthorizeCodeProvider codeProvider ) : ClientHandlerInfo

Create an HTTP Handler that supports OAuth user authentication.

Private Methods

Méthode Description
GetServerDescription ( string authBaseUri ) : DotNetOpenAuth.OAuth2.AuthorizationServerDescription

Method Details

Create() public static méthode

Create an HTTP Handler for client only auth.
public static Create ( string authBaseUri, string clientId, string clientSecret, IEnumerable scopes, DotNetOpenAuth.OAuth2.AuthorizationState existingState = null ) : ClientHandlerInfo
authBaseUri string The base auth URI e.g. https://auth.alitudeangel.com
clientId string Your client ID
clientSecret string Your client secret
scopes IEnumerable Requested scopes
existingState DotNetOpenAuth.OAuth2.AuthorizationState (optional) An existing state object from a previous session. May be null.
Résultat ClientHandlerInfo

Create() public static méthode

Create an HTTP Handler that supports OAuth user authentication.
public static Create ( string authBaseUri, string clientId, string clientSecret, IEnumerable scopes, DotNetOpenAuth.OAuth2.AuthorizationState existingState, bool requireUserToken, string redirectUri, IAuthorizeCodeProvider codeProvider ) : ClientHandlerInfo
authBaseUri string The base auth URI e.g. https://auth.alitudeangel.com
clientId string Your client ID
clientSecret string Your client secret
scopes IEnumerable Requested scopes
existingState DotNetOpenAuth.OAuth2.AuthorizationState (optional) An existing state object from a previous session. May be null.
requireUserToken bool true to aquire a user token, false to get a client only token.
redirectUri string The redirect URI to use for user token auth. Must match the registered URI for your client ID.
codeProvider IAuthorizeCodeProvider Implementation to use to get an authorization code URI from an auth login URI.
Résultat ClientHandlerInfo