C# Class DotNetOpenAuth.OAuth2.ChannelElements.MessageValidationBindingElement

A guard for all messages to or from an Authorization Server to ensure that they are well formed, have valid secrets, callback URIs, etc.
This binding element also ensures that the code/token coming in is issued to the same client that is sending the code/token and that the authorization has not been revoked and that an access token has not expired.
Inheritance: DotNetOpenAuth.OAuth2.ChannelElements.AuthServerBindingElementBase
Exibir arquivo Open project: OneCare/dotnetopenid

Public Methods

Method Description
ProcessIncomingMessage ( IProtocolMessage message ) : MessageProtections?

Performs any transformation on an incoming message that may be necessary and/or validates an incoming message based on the rules of this channel binding element.

Implementations that provide message protection must honor the MessagePartAttribute.RequiredProtection properties where applicable.

ProcessOutgoingMessage ( IProtocolMessage message ) : MessageProtections?

Prepares a message for sending based on the rules of this channel binding element.

Implementations that provide message protection must honor the MessagePartAttribute.RequiredProtection properties where applicable.

Method Details

ProcessIncomingMessage() public method

Performs any transformation on an incoming message that may be necessary and/or validates an incoming message based on the rules of this channel binding element.
Implementations that provide message protection must honor the MessagePartAttribute.RequiredProtection properties where applicable.
/// Thrown when the binding element rules indicate that this message is invalid and should /// NOT be processed. ///
public ProcessIncomingMessage ( IProtocolMessage message ) : MessageProtections?
message IProtocolMessage The incoming message to process.
return MessageProtections?

ProcessOutgoingMessage() public method

Prepares a message for sending based on the rules of this channel binding element.
Implementations that provide message protection must honor the MessagePartAttribute.RequiredProtection properties where applicable.
public ProcessOutgoingMessage ( IProtocolMessage message ) : MessageProtections?
message IProtocolMessage The message to prepare for sending.
return MessageProtections?