c# - 是否有用于 ASP.NET MVC 的混合身份验证配置 ASP.NET 模块 (MADAM) 的端口?

标签 c# .net asp.net asp.net-mvc authentication

混合身份验证配置 ASP.NET 模块 (MADAM) 正是我在 MVC2 中构建的项目所需要的。我不是身份验证方面的专家,MADAM 能否快速 retrofit 以使用 MVC 管道?

http://msdn.microsoft.com/en-us/library/aa479391.aspx

Illustrates how the Forms authentication workflow is suspended by FormsAuthenticationDispositionModule, and how BasicAuthenticationModule adds the necessary headers to the outgoing response after FormsAuthenticationDispositionModule has done its job.

最佳答案

根据您的 IIS 服务器版本,您需要将 MADAM 模块放置在 web.config 文件中的不同位置。

IIS 6

<system.web>
 <httpHandelers>
<-- Madam Modules go here -->
 </httpHandelers>
</system.web>

IIS 7

<system.webServer>
 <httpHandelers>
<-- Madam Modules go here -->
 </httpHandelers>
</system.webServer>

关于c# - 是否有用于 ASP.NET MVC 的混合身份验证配置 ASP.NET 模块 (MADAM) 的端口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5488215/

相关文章:

.net - 我可以在Mono中使用Open XML SDK吗?

以 WCF 为模型的 ASP.NET MVC3

asp.net - jquery:从自动完成填充选择列表?

c# - 使用 Json.NET 反序列化这种数据

c# - 更新数据库访问,c#

c# - Kinect:计算头部的俯仰角、偏航角、滚动角

c# - 无法序列化/反序列化传递给 WCF 方法的参数

c# - 在 Controller 中返回不同的 View

当用户登录时,ASP.NET 成员(member)登录重定向到未经授权的

c# - 如何将参数发送到 Stimulsoft?