MVC中的身份验证和自动化 [英] Authentication and autherization in MVC
本文介绍了MVC中的身份验证和自动化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每个人....
i是MVC的新手.....
i需要在我的应用程序中创建一个登录页面..我有数据库并使用Entity框架我在我的应用程序中生成了上下文类...如何创建登录页面并根据用户角色授权用户......
请帮助我......
解决方案
http:// blogs.msdn.com/b/rickandy/archive/2012/03/23/securing-your-asp-net-mvc-4-app-and-the-new-allowanonymous-attribute.aspx [<一个HREF =http://blogs.msdn.com/b/rickandy/archive/2012/03/23/securing-your-asp-net-mvc-4-app-and-the-new-allowanonymous-attribute.aspx target =_ blanktitle =New Window> ^ ]
http://msdn.microsoft.com/en-us/library/9ab2fxh0.aspx [ ^ ]
http://stackoverflow.com/questions/10742709/asp-net-mvc4-security-authentication-and-authorization [ ^
Hi to every one....
i am new to MVC.....
i need to create a login page in my application.. i have database and using Entity framework i generated the context classes in my application... how can i create login page and authorize users based on their roles......
plese help me......
解决方案
http://blogs.msdn.com/b/rickandy/archive/2012/03/23/securing-your-asp-net-mvc-4-app-and-the-new-allowanonymous-attribute.aspx[^]
http://msdn.microsoft.com/en-us/library/9ab2fxh0.aspx[^]
http://stackoverflow.com/questions/10742709/asp-net-mvc4-security-authentication-and-authorization[^]
这篇关于MVC中的身份验证和自动化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文