C# Class DotNetOpenAuth.OAuth2.ChannelElements.OAuth2ClientChannel

The messaging channel used by OAuth 2.0 Clients.
Inheritance: DotNetOpenAuth.OAuth2.ChannelElements.OAuth2ChannelBase
Exibir arquivo Open project: OneCare/dotnetopenid Class Usage Examples

Protected Methods

Method Description
CreateHttpRequest ( IDirectedProtocolMessage request ) : HttpWebRequest

Prepares an HTTP request that carries a given message.

This method must be overridden by a derived class, unless the Channel.RequestCore method is overridden and does not require this method.

PrepareDirectResponse ( IProtocolMessage response ) : DotNetOpenAuth.Messaging.OutgoingWebResponse

Queues a message for sending in the response stream where the fields are sent in the response stream in querystring style.

This method implements spec OAuth V1.0 section 5.3.

ReadFromRequestCore ( System.Web.HttpRequestBase request ) : IDirectedProtocolMessage

Gets the protocol message that may be embedded in the given HTTP request.

ReadFromResponseCore ( DotNetOpenAuth.Messaging.IncomingWebResponse response ) : string>.IDictionary

Gets the protocol message that may be in the given HTTP response.

Private Methods

Method Description
OAuth2ClientChannel ( ) : System

Initializes a new instance of the OAuth2ClientChannel class.

Method Details

CreateHttpRequest() protected method

Prepares an HTTP request that carries a given message.
This method must be overridden by a derived class, unless the Channel.RequestCore method is overridden and does not require this method.
protected CreateHttpRequest ( IDirectedProtocolMessage request ) : HttpWebRequest
request IDirectedProtocolMessage The message to send.
return System.Net.HttpWebRequest

PrepareDirectResponse() protected method

Queues a message for sending in the response stream where the fields are sent in the response stream in querystring style.
This method implements spec OAuth V1.0 section 5.3.
protected PrepareDirectResponse ( IProtocolMessage response ) : DotNetOpenAuth.Messaging.OutgoingWebResponse
response IProtocolMessage The message to send as a response.
return DotNetOpenAuth.Messaging.OutgoingWebResponse

ReadFromRequestCore() protected method

Gets the protocol message that may be embedded in the given HTTP request.
protected ReadFromRequestCore ( System.Web.HttpRequestBase request ) : IDirectedProtocolMessage
request System.Web.HttpRequestBase The request to search for an embedded message.
return IDirectedProtocolMessage

ReadFromResponseCore() protected method

Gets the protocol message that may be in the given HTTP response.
Thrown when the response is not valid.
protected ReadFromResponseCore ( DotNetOpenAuth.Messaging.IncomingWebResponse response ) : string>.IDictionary
response DotNetOpenAuth.Messaging.IncomingWebResponse The response that is anticipated to contain an protocol message.
return string>.IDictionary