Property | Type | Description | |
---|---|---|---|
authenticator |
Method | Description | |
---|---|---|
OAuthApi ( string identifier, OAuthAuthenticator authenticator, |
Initializes a new instance of the T:SimpleAuth.OAuthApi class.
|
|
OAuthApi ( string identifier, string clientId, string clientSecret, string tokenUrl, string authorizationUrl, string redirectUrl = "http://localhost", |
Initializes a new instance of the T:SimpleAuth.OAuthApi class.
|
|
PrepareClient ( |
||
ResetData ( ) : void |
Method | Description | |
---|---|---|
CreateAuthenticator ( ) : |
||
GetAccountFromAuthCode ( |
||
OAuthApi ( string identifier, string clientId, string clientSecret, |
||
PerformAuthenticate ( ) : Task |
||
RefreshAccount ( |
||
RefreshToken ( |
Method | Description | |
---|---|---|
OAuthApi ( ) : System |
protected CreateAuthenticator ( ) : |
||
return |
protected GetAccountFromAuthCode ( |
||
authenticator | ||
identifier | string | |
return | Task |
public OAuthApi ( string identifier, OAuthAuthenticator authenticator, |
||
identifier | string | This is used to store and look up credentials/cookies for the API |
authenticator | OAuthAuthenticator | OAuth Authenticator. |
handler | Handler. | |
return | System |
protected OAuthApi ( string identifier, string clientId, string clientSecret, |
||
identifier | string | |
clientId | string | |
clientSecret | string | |
handler | ||
return | System |
public OAuthApi ( string identifier, 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 |
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. | |
return | System |
public PrepareClient ( |
||
client | ||
return | System.Threading.Tasks.Task |
protected RefreshAccount ( |
||
account | ||
return | Task |
protected RefreshToken ( |
||
accaccount | ||
return | Task |