我对Katana OWIN有疑问。我将它与OpenId服务器配合使用:
public void Configuration(IAppBuilder app)
{
JwtSecurityTokenHandler.InboundClaimTypeMap = new Dictionary<string, string>();
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = "Cookies"
});
app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
{
ClientId = "implicitclient",
//ClientSecret = "secret",
Authority = Constants.OpenIdAdress2,
RedirectUri = "http://localhost/TestApp",
ResponseType = "id_token token",
Scope = "openid email",
SignInAsAuthenticationType = "Cookies",
});
}
当我在Visual Studio 2012的IIS Express中使用它时一切正常。当我通过Win8将主机更改为IIS 7.5时,My Thinktecture服务器向我发回代码,OWIN无法识别此帖子到MVC应用程序,
我使用包:
<package id="Microsoft.Owin.Host.SystemWeb" version="3.0.0-rc2" targetFramework="net451" />
有谁知道我做错了什么?