C# Класс DotNetOpenAuth.OAuth2.ChannelElements.OAuth2AuthorizationServerChannel

The channel for the OAuth protocol.
Наследование: DotNetOpenAuth.OAuth2.ChannelElements.OAuth2ChannelBase, IOAuth2ChannelWithAuthorizationServer
Показать файл Открыть проект Примеры использования класса

Защищенные методы

Метод Описание
OAuth2AuthorizationServerChannel ( IAuthorizationServer authorizationServer ) : System

Initializes a new instance of the OAuth2AuthorizationServerChannel class.

PrepareDirectResponse ( IProtocolMessage response ) : DotNetOpenAuth.Messaging.OutgoingWebResponse

Queues a message for sending in the response stream.

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.

Приватные методы

Метод Описание
InitializeBindingElements ( IAuthorizationServer authorizationServer ) : IChannelBindingElement[]

Initializes the binding elements for the OAuth channel.

Описание методов

OAuth2AuthorizationServerChannel() защищенный Метод

Initializes a new instance of the OAuth2AuthorizationServerChannel class.
protected OAuth2AuthorizationServerChannel ( IAuthorizationServer authorizationServer ) : System
authorizationServer IAuthorizationServer The authorization server.
Результат System

PrepareDirectResponse() защищенный Метод

Queues a message for sending in the response stream.
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.
Результат DotNetOpenAuth.Messaging.OutgoingWebResponse

ReadFromRequestCore() защищенный Метод

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.
Результат IDirectedProtocolMessage

ReadFromResponseCore() защищенный Метод

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.
Результат string>.IDictionary