C# 来自OpenId的Post未在IIS上触发OWIN层
我对Katana OWIN有意见。我将其与OpenId服务器一起使用,配置如下:C# 来自OpenId的Post未在IIS上触发OWIN层,c#,asp.net,iis,owin,katana,C#,Asp.net,Iis,Owin,Katana,我对Katana OWIN有意见。我将其与OpenId服务器一起使用,配置如下: public void Configuration(IAppBuilder app) { JwtSecurityTokenHandler.InboundClaimTypeMap = new Dictionary<string, string>(); app.UseCookieAuthentication(new CookieAuthent
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",
});
}
public void配置(IAppBuilder应用程序)
{
JwtSecurityTokenHandler.InboundClaimTypeMap=new Dictionary();
app.UseCookieAuthentication(新的CookieAuthenticationOptions
{
AuthenticationType=“Cookies”
});
app.UseOpenIdConnectAuthentication(新的OpenIdConnectAuthenticationOptions
{
ClientId=“隐式客户端”,
//ClientSecret=“secret”,
Authority=Constants.2,
重定向URI=”http://localhost/TestApp",
ResponseType=“id\u令牌”,
Scope=“openid电子邮件”,
SignInAsAuthenticationType=“Cookies”,
});
}
当我在VisualStudio2012的IIS Express中使用它时,一切都正常。当我通过Win8将主机更改为IIS 7.5时,我的Thinktecture服务器会将代码发回给我,而OWIN无法识别此发回MVC应用程序
我使用软件包:
<package id="Microsoft.Owin.Host.SystemWeb" version="3.0.0-rc2" targetFramework="net451" />
有人知道我做错了什么吗