C# Класс AltitudeAngelWings.ApiClient.Client.ApiOAuthClientHandler

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetServerDescription ( string authBaseUri ) : DotNetOpenAuth.OAuth2.AuthorizationServerDescription

Описание методов

Create() публичный статический Метод

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.
Результат ClientHandlerInfo

Create() публичный статический Метод

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.
Результат ClientHandlerInfo