
我正在嘗試使用中定義的被動請求者協議http://docs.oasis-open.org/wsfed/federation/v1.2/ws-federation.html
為此,我發出 GET 請求:
捲曲-X GET -k -i'https://DOMAIN_NAME/adfs/ls/?wa=wsignin1.0&wtsrealm=https://localhost:44366'
但是,這會給出 200 個回應,而不是預期的 401 重定向。事件日誌報告錯誤:
Microsoft.IdentityServer.RequestFailedException: MSIS7065: There are no registered protocol handlers on path /adfs/ls/ to process the incoming request.
at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)
然而,這問題建議如果https://DOMAIN_NAME/adfs/ls/IdpInitiatedSignon.aspx如果有效,那麼簡單的 HTTP 請求應該可以工作。
就我而言,IdpInitiatedSignon.aspx 頁面作品,但是執行簡單的 GET 請求失敗。是否有一些隱藏的、神秘的設定可以讓標準 WS Federation 規範被動請求正常運作?
答案1
當 wtsrealm 設定為未註冊(以某種方式)的網站/資源時,您似乎會收到此錯誤。