gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 17:57:39 26 4
gpt4 key购买 nike

混合身份验证配置 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com