简体   繁体   English

强制用户在使用WIA时手动输入凭据

[英]Force user to enter credentials manually while using WIA

I've got a MVC application configured to use Windows Authentication in IIS. 我已经将MVC应用程序配置为在IIS中使用Windows身份验证。 So If an user accesses the app from a machine within the same domain and a browser which supports WIA, no credentials dialog will be displayed and the user is logged in right away. 因此,如果用户从同一域中的计算机和支持WIA的浏览器访问应用程序,则不会显示凭据对话框,并且用户将立即登录。 If an user accesses the app from a browser or a machine which does NOT support WIA or is outside the domain, the credentials dialog is being displayed correctly. 如果用户从不支持WIA或不在域中的浏览器或计算机访问该应用程序,则凭据对话框将正确显示。

Additionally I'd like to teach the app the following behavior. 另外,我想教该应用程序以下行为。 Some users from the domains are not allowed to access my application, so the app should reject the user (eg it is not within a specific AD group) even though it has authenticated successfully and force it to enter the credentials of a different user manually using the same dialog which is user to authenticate users using a browser not supporting it. 域中的某些用户不允许访问我的应用程序,因此即使该应用程序已成功进行身份验证,该应用程序也应拒绝该用户(例如,它不在特定的AD组中),并强制其使用手动输入其他用户的凭据该对话框是用户使用不支持该浏览器的浏览器来验证用户身份的对话框。

Thank you a lot in advance! 提前非常感谢您!

Got it - modifying the web.config according to this post does the trick. 知道了-根据这篇文章修改web.config就可以了。

https://serverfault.com/questions/352647/restrict-access-to-iis-site-to-an-ad-group https://serverfault.com/questions/352647/restrict-access-to-iis-site-to-an-ad-group

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM