C# Класс SimpleAuth.OauthApiKeyApi

Наследование: OAuthApi
Показать файл Открыть проект

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

Метод Описание
OauthApiKeyApi ( string identifier, string apiKey, string authKey, AuthLocation authLocation, OAuthAuthenticator authenticator, HttpMessageHandler handler = null ) : System

Initializes a new instance of the T:SimpleAuth.OauthApiKeyApi class.

OauthApiKeyApi ( string identifier, string apiKey, string authKey, AuthLocation authLocation, string clientId, string clientSecret, string tokenUrl, string authorizationUrl, string redirectUrl = "http://localhost", HttpMessageHandler handler = null ) : System

Initializes a new instance of the T:SimpleAuth.OauthApiKeyApi class.

PrepareClient ( HttpClient client ) : System.Threading.Tasks.Task

Защищенные методы

Метод Описание
PrepareUrl ( string path, bool authenticated = true ) : Task

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

OauthApiKeyApi() публичный Метод

Initializes a new instance of the T:SimpleAuth.OauthApiKeyApi class.
public OauthApiKeyApi ( string identifier, string apiKey, string authKey, AuthLocation authLocation, OAuthAuthenticator authenticator, HttpMessageHandler handler = null ) : System
identifier string This is used to store and look up credentials/cookies for the API
apiKey string API key.
authKey string Auth key.
authLocation AuthLocation Auth location.(Header or Query)
authenticator OAuthAuthenticator OAuth Authenticator.
handler System.Net.Http.HttpMessageHandler Handler.
Результат System

OauthApiKeyApi() публичный Метод

Initializes a new instance of the T:SimpleAuth.OauthApiKeyApi class.
public OauthApiKeyApi ( string identifier, string apiKey, string authKey, AuthLocation authLocation, string clientId, string clientSecret, string tokenUrl, string authorizationUrl, string redirectUrl = "http://localhost", HttpMessageHandler handler = null ) : System
identifier string This is used to store and look up credentials/cookies for the API
apiKey string API key.
authKey string Auth key.
authLocation AuthLocation Auth location.(Header or Query)
clientId string OAuth Client identifier.
clientSecret string OAuth Client secret.
tokenUrl string URL for swaping out the token.
authorizationUrl string Login website URL.
redirectUrl string Redirect URL. Defaults to http://localhost
handler System.Net.Http.HttpMessageHandler Handler.
Результат System

PrepareClient() публичный Метод

public PrepareClient ( HttpClient client ) : System.Threading.Tasks.Task
client System.Net.Http.HttpClient
Результат System.Threading.Tasks.Task

PrepareUrl() защищенный Метод

protected PrepareUrl ( string path, bool authenticated = true ) : Task
path string
authenticated bool
Результат Task