Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个联合到 ADFS 2.0 服务器的 .net 4.0 MVC 4 应用程序。我使用“添加 STS 参考”选项进行了设置。现在,每次我点击带有 [authorize] 属性的控制器时,它都会将我带到 adfs 登录页面(第一次)。我的问题是
我希望这是有道理的。如果不是,请告诉我,以便我更好地解释
回答 2:您可以请求 Server.RawUrl 并从中提取“returnUrl”(浏览器在登录后重定向的位置)或 RelyingParty。根据 URL 中的值,您可以施展魔法......