我的配置有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