C# Class Rainy.WebService.OAuth.OAuthAuthenticateService

Inheritance: Rainy.WebService.RainyNoteServiceBase
Exibir arquivo Open project: Dynalon/Rainy Class Usage Examples

Public Methods

Method Description
OAuthAuthenticateService ( IDbConnectionFactory factory, OAuthHandler oauthHandler, IAuthenticator auth ) : System
Post ( OAuthAuthenticateRequest request ) : object
Post ( OAuthTemporaryAccessTokenRequest request ) : object
TokenExchangeAfterAuthentication ( string username, string password, string token ) : object

Protected Methods

Method Description
userIsAllowed ( string username, string password, string &username_out ) : bool

Private Methods

Method Description
GenerateAccessToken ( string username, string password, System.DateTime expiry = null ) : DevDefined.OAuth.Storage.Basic.AccessToken

Method Details

OAuthAuthenticateService() public method

public OAuthAuthenticateService ( IDbConnectionFactory factory, OAuthHandler oauthHandler, IAuthenticator auth ) : System
factory IDbConnectionFactory
oauthHandler OAuthHandler
auth IAuthenticator
return System

Post() public method

public Post ( OAuthAuthenticateRequest request ) : object
request OAuthAuthenticateRequest
return object

Post() public method

public Post ( OAuthTemporaryAccessTokenRequest request ) : object
request OAuthTemporaryAccessTokenRequest
return object

TokenExchangeAfterAuthentication() public method

public TokenExchangeAfterAuthentication ( string username, string password, string token ) : object
username string
password string
token string
return object

userIsAllowed() protected method

protected userIsAllowed ( string username, string password, string &username_out ) : bool
username string
password string
username_out string
return bool