How do I Integrate OpenID into MVC4 Web API
问题 I am writing a Web API using MVC4 that should be consumed by multiple client types. I want to use the OpenID to authenticate. I already have downloaded the DotNetOpenAuth NuGet package, but so far all of the examples are for a client app, rather than an API. My problem is simple. I want to have clients send an authentication request to my API. The API authenticates with an OpenID provider. The API then sets whatever it needs to in order to use the [Authorize] tags throughout the web api calls