DotNetOpenAuth/DotNetOpenAuth — pull request #194 by phw (2012-08-21 14:43:18+00:00)
Title: Add support for Web API HttpRequestMessage to the OAuth2 ResourceServer

This patch adds support for parsing System.Net.HttpRequestMessage, as used by the new Web API, in the OAuth2 ResourceServer.

Please note the following:

* The patch adds a dependency to System.Net.Http
* The body of HttpRequestMessage is supposed to be read asynchronously. Since HttpRequestInfo does not have an interface for this there is a blocking call. I don't think this is a real issue since the other HTTP interfaces supported might also suffer from this.
* The patch adds the HttpRequestMessage support to the ResourceServer only, not the AuthorizationServer.

The reason for the last point is simply that I use MVC for the authorization server and Web Api for the resource side, so I have no personal need for it. Also I am only interested in the OAuth2 part. If there is any interest in this I think I could extend this patch, but it won't be very soon.