在MVC应用程序.NET中为少数用户绕过Windows身份验证 [英] Bypass windows authentication for few user not for all in MVC application .NET

查看:60
本文介绍了在MVC应用程序.NET中为少数用户绕过Windows身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我有Windows身份验证的MVC应用程序,但我正在寻找绕过Windows应用程序的一些用户而不是所有用户。



我尝试过:



set

Hello,

I have MVC application with windows authentication ,but i am looking for bypass the windows application for some user not for all.

What I have tried:

set

Quote:

< authentication mode =Windows/>

< authorization>

< allow users =sid/>

< deny users =*/>

<authentication mode="Windows" />
<authorization>
<allow users="sid" />
<deny users="*" />

推荐答案

你想先设置拒绝,然后允许:



You want to set deny first, and then allow:

<deny users="*" />
<allow users="sid" />


这篇关于在MVC应用程序.NET中为少数用户绕过Windows身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆