Asp.Net MVC - 混合验证模式 [英] Asp.Net MVC - Mixed Auth Mode
问题描述
我在寻找同时使用Windows和基于表单的身份验证的在ASP.NET MVC 2 的我知道该怎么做,在web表单,但因为我不能调整权限(最可靠的方法在IIS)上的每个文件的基础MVC中。林奋力转移的概念。
I'm looking for the most reliable way to use both Windows and Form based auth IN ASP.NET MVC 2 I know how to do it in webforms, but because I cannot adjust the permissions (In IIS) on a per file basis in MVC. Im struggling to transfer the concept.
有什么建议?链接?
推荐答案
有下面的帖子:结果
http://aspadvice.com/blogs/rjdudley/archive/2005 /03/10/2562.aspx 结果
http://aspadvice.com/blogs/rjdudley/archive/2005 /03/10/2561.aspx 结果
http://msdn.microsoft.com/en-us/library/ms972958.aspx
There are following post:
http://aspadvice.com/blogs/rjdudley/archive/2005/03/10/2562.aspx
http://aspadvice.com/blogs/rjdudley/archive/2005/03/10/2561.aspx
http://msdn.microsoft.com/en-us/library/ms972958.aspx
所有形容它为经典的asp.net。但这个概念应该是转移到MVC。
我实现了这个使用MVC和一个自定义的成员提供。
All describe it for classic asp.net. But the concept should be transferable to mvc. I implemented this using mvc and a custom membership provider.
整个应用程序与ASPNET匿名帐户下运行。这意味着,您的文件必须是这个帐户访问。在我的机器,我不得不放弃这个IIS帐户读取权限。
The whole application is running with aspnet anonymous account. That means that your files must be accessible to this account. On my machine I had to give read access to this IIS account.
这篇关于Asp.Net MVC - 混合验证模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!