MVC中的身份验证 [英] Authentication in MVC

查看:89
本文介绍了MVC中的身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



亲爱的,我只是想在我的mvc应用程序中实现身份验证,实际上,我不知道身份验证mvc的过程,就像我们在asp.net中使用表单身份验证一样,使用我们的自定义数据表创建身份验证票证,并为每个请求创建用于身份验证的页面基础,我的问题是,我们如何在mvc中为每个请求执行此操作以及如何在mvc中使用成员资格,我们是否可以使用我们的自定义数据表的成员资格。



你可以给我指点吗,先谢谢。

解决方案

演练:在ASP.NET MVC中使用表单身份验证 [ ^ ]



它应该足够开始;)


对于MVC 4



ASP.NET MVC 4中的表单身份验证



对于MVC 5



使用SimpleMembership和OAuth在ASP.NET MVC中进行身份验证



我希望这会对你有所帮助。


hi


您可以使用以下链接进行基于表格的认证



http://tutorial.techaltum.com/Form- based-atuthentication-in-MVC.html [ ^ ]

Hi,
Dear all, I just want to implement authentication in my mvc application, actually, I do not know the procedure of authentication mvc, like in asp.net we use the forms authentication, create the authentication ticket with our custom data tables and create the page base for authentication each request, my question is, how can we do it in mvc for each request and how to use membership in mvc, can we use membership with our custom data tables.

could you give me direction, thanks in advance.

解决方案

Walkthrough: Using Forms Authentication in ASP.NET MVC[^]

It should be enough for start ;)


For MVC 4

Forms Authentication in ASP.NET MVC 4

For MVC 5

Authentication in ASP.NET MVC with SimpleMembership and OAuth

I hope this will help to you.


hi
you can use the following link to do the form based authenticaion

http://tutorial.techaltum.com/Form-based-atuthentication-in-MVC.html[^]


这篇关于MVC中的身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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