C# 클래스 SimpleAuth.OauthApiKeyApi

상속: OAuthApi
파일 보기 프로젝트 열기: Clancey/SimpleAuth

공개 메소드들

메소드 설명
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