C# Class SimpleAuth.OauthApiKeyApi

Inheritance: OAuthApi
Mostra file Open project: Clancey/SimpleAuth

Public Methods

Method 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

Protected Methods

Method Description
PrepareUrl ( string path, bool authenticated = true ) : Task

Method Details

OauthApiKeyApi() public method

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.
return System

OauthApiKeyApi() public method

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.
return System

PrepareClient() public method

public PrepareClient ( HttpClient client ) : System.Threading.Tasks.Task
client System.Net.Http.HttpClient
return System.Threading.Tasks.Task

PrepareUrl() protected method

protected PrepareUrl ( string path, bool authenticated = true ) : Task
path string
authenticated bool
return Task