메소드 | 설명 | |
---|---|---|
OauthApiKeyApi ( string identifier, string apiKey, string authKey, AuthLocation authLocation, |
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", |
Initializes a new instance of the T:SimpleAuth.OauthApiKeyApi class.
|
|
PrepareClient ( |
메소드 | 설명 | |
---|---|---|
PrepareUrl ( string path, bool authenticated = true ) : Task |
public OauthApiKeyApi ( string identifier, string apiKey, string authKey, AuthLocation authLocation, |
||
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 | OAuth Authenticator. | |
handler | Handler. | |
리턴 | System |
public OauthApiKeyApi ( string identifier, string apiKey, string authKey, AuthLocation authLocation, string clientId, string clientSecret, string tokenUrl, string authorizationUrl, string redirectUrl = "http://localhost", |
||
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 | Handler. | |
리턴 | System |
public PrepareClient ( |
||
client | ||
리턴 | System.Threading.Tasks.Task |
protected PrepareUrl ( string path, bool authenticated = true ) : Task |
||
path | string | |
authenticated | bool | |
리턴 | Task |