C# Class BoxKite.Twitter.Authentication.TwitterAuthenticator

ファイルを表示 Open project: nickhodge/BoxKite.Twitter

Public Methods

Method Description
Authentication ( this session, string _callbackuri ) : Task
ConfirmPin ( this session, string pinAuthorizationCode, string oAuthToken ) : Task
StartApplicationOnlyAuth ( this appsession ) : Task

Using client(consumer) id and key, start a 'readonly' Application-auth'd session

StartUserAuthentication ( this session ) : Task
StopApplicationOnlyAuth ( this appsession ) : Task

Using client(consumer) id and key, start a 'readonly' Application-auth'd session

ref: https://dev.twitter.com/docs/api/1.1/post/oauth2/invalidate_token

XAuthentication ( this session, string xauthusername, string xauthpassword ) : Task

XAuth for Twitter: Note: this hasn't been tested in production and is implemented from documentation only! Please contact @RealNickHodge if you need to debugged worked out!

Private Methods

Method Description
GenerateSignature ( this session, string signingKey, string baseString, string tokenSecret ) : string
OAuthUrlEncode ( string value ) : string
PostData ( string url, string authdata, string content = null ) : Task

Method Details

Authentication() public static method

public static Authentication ( this session, string _callbackuri ) : Task
session this
_callbackuri string
return Task

ConfirmPin() public static method

public static ConfirmPin ( this session, string pinAuthorizationCode, string oAuthToken ) : Task
session this
pinAuthorizationCode string
oAuthToken string
return Task

StartApplicationOnlyAuth() public static method

Using client(consumer) id and key, start a 'readonly' Application-auth'd session
public static StartApplicationOnlyAuth ( this appsession ) : Task
appsession this
return Task

StartUserAuthentication() public static method

public static StartUserAuthentication ( this session ) : Task
session this
return Task

StopApplicationOnlyAuth() public static method

Using client(consumer) id and key, start a 'readonly' Application-auth'd session
ref: https://dev.twitter.com/docs/api/1.1/post/oauth2/invalidate_token
public static StopApplicationOnlyAuth ( this appsession ) : Task
appsession this
return Task

XAuthentication() public static method

XAuth for Twitter: Note: this hasn't been tested in production and is implemented from documentation only! Please contact @RealNickHodge if you need to debugged worked out!
public static XAuthentication ( this session, string xauthusername, string xauthpassword ) : Task
session this
xauthusername string
xauthpassword string
return Task