我的配置有3个站点:Identity Server(Idp),Windows身份验证主机和我的最终用户客户端站点。在客户端上,我请求一个用[Authorize]
和Identity Server进行装饰的控制器。IDX10803:无法创建以获取配置
端口44305的Windows主机显然引发异常,身份服务器正在接收状态500.我可以访问Windows主机站点网址没有任何问题。我找回一个XML文档
我该如何调试并找出哪些异常或错误是停止此认证过程?我得到的最内层为以下
InvalidOperationException: IDX10803: Unable to create to obtain configuration from: 'https://localhost:44305/'.
Microsoft.IdentityModel.Protocols.ConfigurationManager`1.<GetConfigurationAsync>d__3.MoveNext() in ConfigurationManager.cs
Windows主机OWIN启动3部分异常使用UseWindowsAuthenticationService
身份服务器OWIN使用AuthenticationOptions = WsFederationAuthenticationOptions
var wsFederationOptions = new WsFederationAuthenticationOptions
{
AuthenticationType = "windows",
Caption = "Windows",
SignInAsAuthenticationType = signInAsType,
MetadataAddress = "https://localhost:44305/",
Wtrealm = "urn:idsrv3"
};
app.UseWsFederationAuthentication(wsFederationOptions);
}
这里有请求和回应
Request URL:https://localhost:44315/
Request Method:GET
Status Code:302 Found
Response:Location:https://localhost:16433/connect/authorize?client_id=hms2015&redirect_uri=...
Request: https://localhost:16433/connect/authorize?client_id=hms2015&redirect_uri=...
Request Method:GET
Status Code:302 Found
Location:https://localhost:16433/login?signin=fde7508a6634698847c3076c9028604b
Request URL:https://localhost:16433/login?signin=fde7508a6634698847c3076c9028604b
Request Method:GET
Status Code:500 Internal Server Error
我没有可见的SSL问题。通过我的浏览器,我可以在不发出任何警告的情况下打开来自不同站点的所有页面我将我的本地IIS Express证书添加到受信任的根证书。
Karthik,我会喜欢了解更多关于监控流量的信息。如果您想分享您发现有助于了解监控的网页,我将非常感激。请分享。 – MADCookie
@ MADCookie-我假设你在WireShark流量监控之后。这个链接给WireShark http://www.troyhunt.com/2013/04/the-beginners-guide-to-breaking-website.html(在部分 - 数据包捕获下) – Karthik