C# Class SimpleAuth.OauthApiKeyApi

Inheritance: OAuthApi
Afficher le fichier Open project: Clancey/SimpleAuth

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
PrepareUrl ( string path, bool authenticated = true ) : Task

Method Details

OauthApiKeyApi() public méthode

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.
Résultat System

OauthApiKeyApi() public méthode

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.
Résultat System

PrepareClient() public méthode

public PrepareClient ( HttpClient client ) : System.Threading.Tasks.Task
client System.Net.Http.HttpClient
Résultat System.Threading.Tasks.Task

PrepareUrl() protected méthode

protected PrepareUrl ( string path, bool authenticated = true ) : Task
path string
authenticated bool
Résultat Task