如何在Web应用程序中开发混合模式身份验证? [英] how to develop mixed mode authentication in web application?

查看:131
本文介绍了如何在Web应用程序中开发混合模式身份验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在单个Web应用程序中基于以下两个条件一起开发窗口和表单身份验证

1)当外部用户自动将其重定向到其他页面时

2)当网络成员来时,他也会自动重定向到另一个页面



请帮助我,如果你有任何这方面的例子请在这里上传

I want to develop windows and form authentication together in single web application on the basis of following two condition
1) when external user come it automatically redirected to other page
2) when network member come he also automatically redirected to another page

plz help me if u have any example of this please upload here

推荐答案

MSDN [ ^ ]

混合身份验证 [ ^ ]

查看这些链接。

我用过在我的一个项目中也是如此。我已将默认网址设置为单独的区域管理员。在IIS中,我将Admin Area文件夹设置为Windows身份验证,但根文件夹将具有匿名身份验证。当deault url点击Admin区域时,它会要求进行Windows身份验证,否则如果无效则返回到表单身份验证,您可以通过自定义来使用Authorize属性。

i希望您理解。按照链接,他们也会帮助你。

回复你的查询,如果有的话。

谢谢。
MSDN[^]
Mixed Authentication[^]
Check these links.
I have used the same in one of my project. I have set the default url to a separate area Admin. And in IIS I have set the Admin Area folder as Windows Authentication, but the root folder will have Anonymous authentication. When the deault url hits that is the Admin area, then it asks for windows authentication, else if not valid then goes back to forms authentication in which you can use Authorize attribute by customizing it.
i hope you understand. Follow the links they will also help you out.
Post back your queries if any.
thanks.


按照以下步骤:



1.在数据库中维护一个像IsAdUser这样的字段(即表示它是否是活动目录用户。

2.一旦用户登录检查它是否是活动目录用户,如果它是活动目录用户然后通过LDAP验证该用户,否则验证您的数据库。



如果您需要请告诉我更清晰。
Follow the steps below:

1. Maintain in database one bit field like IsAdUser (i.e. represent wheater it's active directory user or not.
2. Once user login check whether it's active directory user or not if it's active directory user then validate that user through LDAP, else validate against your database.

Please let me know if you need more clarity on this.


检查此链接希望这对您有所帮助。



使用表单身份验证进行Windows身份验证 [ ^ ]



http://msdn.microsoft.com/en-us/library/ms972958.aspx [ ^ ]



http://stackoverflow.com/questions/2250921/mixing-forms-authentication-with-windows-身份验证 [ ^ ]



http://stackoverflow.com/questions/20863108/mixing-windows-and-forms-authentication-in-net-4-5-how-to-keep -request-isauthe [ ^ ]



http://blog.repsaj.nl/index.php/2007/08/mixing-forms-based -and-windows-authentication-in-aspnet / [ ^ ]



http://dotnetslackers.com/articles/aspnet/Windows-Authentication-using-Form-Authentication.aspx [<一个href =http://dotnetslackers.com/articles/aspnet/Windows-Authentication-using-Form-Authentication.aspx\"target =_ blanktitle =New Window> ^ ]
Check this links hope this will help you.

Windows Authentication Using Form Authentication[^]

http://msdn.microsoft.com/en-us/library/ms972958.aspx[^]

http://stackoverflow.com/questions/2250921/mixing-forms-authentication-with-windows-authentication[^]

http://stackoverflow.com/questions/20863108/mixing-windows-and-forms-authentication-in-net-4-5-how-to-keep-request-isauthe[^]

http://blog.repsaj.nl/index.php/2007/08/mixing-forms-based-and-windows-authentication-in-aspnet/[^]

http://dotnetslackers.com/articles/aspnet/Windows-Authentication-using-Form-Authentication.aspx[^]


这篇关于如何在Web应用程序中开发混合模式身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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