C# Class Glipho.OAuth.Providers.OAuthServiceProvider

A service provider for web applications.
Show file Open project: Glipho/oauth-providers

Public Methods

Method Description
AuthorizePendingRequestToken ( string username ) : void

Authorize the pending request token.

AuthorizePendingRequestTokenAsWebResponse ( string username ) : DotNetOpenAuth.Messaging.OutgoingWebResponse

Authorize the pending request token as a web response.

OAuthServiceProvider ( Database consumers, Database issuedTokens, Database nonces ) : System

Initialises a new instance of the OAuthServiceProvider class.

Private Methods

Method Description
AuthorizePendingRequestTokenAndGetResponse ( string username ) : DotNetOpenAuth.OAuth.Messages.UserAuthorizationResponse

Authorize the pending request token and get the response.

EnsureInitialized ( ) : void

Initializes the serviceProvider field if it has not yet been initialized.

Method Details

AuthorizePendingRequestToken() public method

Authorize the pending request token.
public AuthorizePendingRequestToken ( string username ) : void
username string The username to authorise with request token with.
return void

AuthorizePendingRequestTokenAsWebResponse() public method

Authorize the pending request token as a web response.
public AuthorizePendingRequestTokenAsWebResponse ( string username ) : DotNetOpenAuth.Messaging.OutgoingWebResponse
username string The username to authorise with request token with.
return DotNetOpenAuth.Messaging.OutgoingWebResponse

OAuthServiceProvider() public method

Initialises a new instance of the OAuthServiceProvider class.
public OAuthServiceProvider ( Database consumers, Database issuedTokens, Database nonces ) : System
consumers Database The consumers database client.
issuedTokens Database The issued tokens database client.
nonces Database The nonces database client.
return System