如何保护MVC 5 C#.Net应用程序 [英] How to secure MVC 5 C# .Net Application

查看:76
本文介绍了如何保护MVC 5 C#.Net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在使用带有C#.Net的MVC 5开发一个Web应用程序。帮助我,如何保护这个应用程序?





我已经实现了MVC 5过滤器安全性和角色基础认证。



请指导我为同一个应用程序实施哪种安全措施。



等待您的回复。在此先感谢!!!!







谢谢,

Anil Singh

解决方案

出于安全考虑,您应该在申请中使用以下内容



身份验证

表格认证

Windows认证

授权

XSS

CSRF(跨站点请求伪造)



请参阅以下链接,我们可以为您提供代码和概念指南

您可以查看mvc 5的新功能



http://www.asp.net/mvc/mvc5 [< a href =http://www.asp.net/mvc/mvc5target =_ blanktitle =New Window> ^ ]



ASP.NET MVC中的安全性 [ ^ ]



http://blogs.msdn.com/b/rickandy/archive/2012/03/23/securing-your-asp-net-mvc-4-app-and-the- new-allowanonymous-attribute.aspx [ ^ ]

http://www.asp.net / mvc / mvc5



http://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-deploy-aspnet-mvc-app-membership -oauth-sql-database / [ ^ ]



使用MVC 5,Web API 2,KnockoutJS,Ninject和NUnit开发,架构和测试Web应用程序 [ ^ ]





http://www.asp.net/mvc/tutorials/mvc-5/lifecycle-of-an-aspnet-mvc-5-application [ ^ ]


请参阅以下链接



- 使用基于MVC 5 Web API 2令牌防止跨站点请求伪造(CSRF)攻击身份验证



安全MVC 5 C#.Net应用程序? [ ^ ]

Hi everyone,

I am developing a web application using MVC 5 with C# .Net. Help me, how to secure this application?


I have implemented to MVC 5 filters security and role base authentication.

Please guide me what kind of security need to implements for the same app.

Waiting for your response. Thanks in advance!!!!



Thanks,
Anil Singh

解决方案

For security purpose you should to use following in your application

Authentication
Forms Authentication
Windows Authentication
Authorization
XSS
CSRF(Cross Site Request Forgery)

Please see following links that can we guide you for code and concept
and you can check new features of mvc 5

http://www.asp.net/mvc/mvc5[^]

Security In ASP.NET MVC[^]

http://blogs.msdn.com/b/rickandy/archive/2012/03/23/securing-your-asp-net-mvc-4-app-and-the-new-allowanonymous-attribute.aspx[^]
http://www.asp.net/mvc/mvc5

http://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-deploy-aspnet-mvc-app-membership-oauth-sql-database/[^]

Developing, Architecting and Testing Web Applications with MVC 5, Web API 2, KnockoutJS, Ninject and NUnit[^]


http://www.asp.net/mvc/tutorials/mvc-5/lifecycle-of-an-aspnet-mvc-5-application[^]


Please see the below link

- Preventing Cross-Site Request Forgery(CSRF) Attacks using MVC 5 Web API 2 Token Based Authentication

Secure MVC 5 C# .Net Application ?[^]


这篇关于如何保护MVC 5 C#.Net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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