diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-02-09 07:42:31 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-02-09 07:42:31 -0800 |
commit | c5c80c48a98e5ddfe56da2894a0e961de4ca557b (patch) | |
tree | 16d6d57b860ee24387fc8bccff9e6e1298f13373 /src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs | |
parent | 1224fab92832edca08b58b971537b426abb02024 (diff) | |
download | DotNetOpenAuth-c5c80c48a98e5ddfe56da2894a0e961de4ca557b.zip DotNetOpenAuth-c5c80c48a98e5ddfe56da2894a0e961de4ca557b.tar.gz DotNetOpenAuth-c5c80c48a98e5ddfe56da2894a0e961de4ca557b.tar.bz2 |
Constructors on all OpenID direct response messages now require the OpenID version of the message, allowing for RPs to receive response messages in versions differing from their request message.
Also added test to verify this, and OpenIdProvider error messages w/o requiring ASP.NET hosting.
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs index 05d1fd4..f00c356 100644 --- a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs +++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs @@ -58,7 +58,8 @@ namespace DotNetOpenAuth.Test.Mocks { } protected internal override HttpRequestInfo GetRequestFromContext() { - return new HttpRequestInfo((IDirectedProtocolMessage)this.AwaitIncomingMessage()); + var directedMessage = (IDirectedProtocolMessage)this.AwaitIncomingMessage(); + return new HttpRequestInfo(directedMessage, directedMessage.HttpMethods); } protected override IProtocolMessage RequestInternal(IDirectedProtocolMessage request) { @@ -91,7 +92,7 @@ namespace DotNetOpenAuth.Test.Mocks { /// <param name="message">The message to add a pretend HTTP method to.</param> /// <returns>A spoofed HttpRequestInfo that wraps the new message.</returns> private HttpRequestInfo SpoofHttpMethod(IDirectedProtocolMessage message) { - HttpRequestInfo requestInfo = new HttpRequestInfo(message); + HttpRequestInfo requestInfo = new HttpRequestInfo(message, message.HttpMethods); var signedMessage = message as ITamperResistantOAuthMessage; if (signedMessage != null) { |