简体   繁体   English

二级身份验证IIS7

[英]Two stage Authentication IIS7

I know the question of mixed mode authentication and IIS7 has been done to death but I have a slightly different question. 我知道混合模式身份验证和IIS7的问题已经解决,但是我有一个稍微不同的问题。

I am developing an extra net to host many applications (running under their own app pools) for testing. 我正在开发一个额外的网络来托管许多应用程序(在其自己的应用程序池下运行)以进行测试。

These applications have their own forms authentication, as when they are in a live, this is their authentication mode and ideally i dont want to have to change anything there. 这些应用程序具有自己的形式身份验证,因为当它们处于实时状态时,这就是它们的身份验证模式,理想情况下,我不想在此进行任何更改。

What i need, is another authentication check before they even get to the applications to check whether they are allowed to be on the extranet. 我需要的是在它们进入应用程序以检查是否允许它们进入Extranet之前进行的另一项身份验证检查。 I dont even want them to see the login page of the applications. 我什至不希望他们看到应用程序的登录页面。

Clearly, i can set windows authentication on the extranet website, and only people we have set up will be able to see it. 显然,我可以在Extranet网站上设置Windows身份验证,只有我们设置的人才能看到它。 But the inner applications use forms authentication and if you just type the whole url (eg http://extranetsite/applicationtotest/login ) then it doesnt check the windows authentication. 但是内部应用程序使用表单身份验证,如果您只键入整个URL(例如http:// extranetsite / applicationtotest / login ),则它不会检查Windows身份验证。

Has anyone got any suggestions how i could acheive this? 有没有人有任何建议我可以做到这一点?

(FYI, im using IIS7, .net 3.5, mvc2) ps. (仅供参考,即时通讯使用IIS7,.net 3.5,mvc2)ps。 I really want to avoid running this in Classic pipeline as i am using MVC. 我真的想避免在Classic管道中运行此程序,因为我正在使用MVC。

Do you have a firewall in front of this Extranet? 您在此Extranet前面是否有防火墙? You could restrict access to the entire site by limiting the IP ranges allowed to see it. 您可以通过限制允许查看该站点的IP范围来限制对整个站点的访问。

Alternatively, you can set up another site that is the entry point of the applications that is secured with Windows Authentication. 或者,您可以设置另一个站点,该站点是使用Windows身份验证保护的应用程序的入口点。 Then on the login page of each application you can check to see if the user has a valid referrer reference from this landing page. 然后,在每个应用程序的登录页面上,您可以检查该登录页面上用户是否具有有效的引荐来源网址参考。 If not, you can redirect them back to the landing page or display a message. 如果没有,您可以将它们重定向回登录页面或显示一条消息。 Not foolproof by any means but might get part of the result you are looking for. 绝对不能做到万无一失,但可能会得到您想要的结果的一部分。

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

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