Language

How to make an ASP.NET site more secure, and how to implement authentication and authorization.

  1. ASP.NET Identity

    The ASP.NET Identity system is designed to replace the previous ASP.NET Membership and Simple Membership systems. It includes profile support, OAuth integration, works with OWIN, and is included with the ASP.NET templates shipped with Visual Studio 2013.

  2. ASP.NET MVC 5 Identity and Security

    Module 3 from ASP.NET MVC 5 Fundamentals. 54 minutes 7 seconds.

  3. Deploy a Secure ASP.NET MVC application with OAuth, Membership and SQL Database

    This tutorial shows how to create and deploy a secure ASP.NET MVC 5 app using OAuth, the membership database with SQL data.

  4. MVC 5 App with Facebook, and Google OAuth2 Sign-on

    By Rick Anderson|

    This tutorial shows you how to build an ASP.NET MVC 5 web application that enables users to log in using OAuth 2.0 with credentials from an external authentication provider, such as Facebook, Twitt...

  5. Create a secure ASP.NET MVC 5 web app with log in, email confirmation and password reset

    By Rick Anderson|

    Shows you how to build an ASP.NET MVC 5 web app with email confirmation and password reset using the ASP.NET Identity membership system.

  6. ASP.NET MVC 5 app with SMS and email Two-Factor Authentication

    By Rick Anderson|

    Create ASP.NET MVC 5 web app with Two-Factor Authentication. This tutorial uses Twilo and SendGrid for 2FA, but you can use any SMS and email providers.

  7. Developing ASP.NET Apps with Windows Azure Active Directory

    By Rick Anderson|

    Microsoft ASP.NET tools for Windows Azure Active Directory makes it simple to enable authentication for web applications hosted on Windows Azure Web Sites . You can use Windows Azure Authentication...

  8. OWIN and Katana

    Katana is a flexible set of components for building and hosting Open Web Interface for .NET (OWIN)-based web applications. The Katana/OWIN documentation includes tutorials that show how to handle authentication and authorization scenarios.

  9. XSRF/CSRF Prevention in ASP.NET MVC and Web Pages

    By Rick Anderson||Level 300 : Intermediate

    Cross-site request forgery (also known as XSRF or CSRF) is an attack against web-hosted applications whereby a malicious web site can influence the interaction between a client browser and a web si...

  10. Preventing Open Redirection Attacks (C#)

    By Jon Galloway|

    This tutorial explains how you can prevent open redirection attacks in your ASP.NET MVC applications. This tutorial discusses the changes that have been made in the AccountController in ASP.NET MVC...

  11. MVC 4 Security

    This Pluralsight video provides an overview of security practices for an ASP.NET MVC application.

  12. MVC 4 Security - the AllowAnonymous Attribute

    This blog post covers many important security considerations in ASP.NET MVC.

  13. Security Extensibility in ASP.NET 4

    This whitepaper covers the major ways in which security features in ASP.NET 4 can be customized, including: Encryption options and functionality in the machineKey element, interoperability of ASP.NET 4 forms authentication tickets with ASP.NET 2.0, configuration options to relax automatic security checks on inbound URLs, pluggable request validation, and pluggable encoding for HTML elements, HTML attributes, HTTP headers, and URLs.

  14. Recommended Resources for MVC

    See sections on security, membership, authentication. "Securing ASP.NET MVC applications" in the ASP.NET MVC Content Map.

Essential Videos

Pluralsight

Microsoft has made it possible for you to enjoy this Pluralsight training free of charge. In addition, you can watch more videos free of charge from Microsoft.

1. Introduction and Prerequisites

15 mins

2. OWIN and Katana

51 mins

3. Identity and Security

54 mins

4. Bootstrap

47 mins

5. Web API 2

50 mins

6. Entity Framework 6

61 mins

7. SignalR

49 mins

8. Web Developer Tools and Visual Studio 2013

44 mins

Sponsored By: Pluralsight

Unlock access to 3,000+ dev, IT and creative courses that you can watch anytime, anywhere.

Starting at $29/mo.

free trial subscribe now

ASP.NET MVC Books

Microsoft's Jon Galloway recommends these books for learning ASP.NET MVC:

Pro ASP.NET MVC 4

Pro ASP.NET MVC 4

by Adam Freeman

Professional ASP.NET MVC 4

Professional ASP.NET MVC 4

by Jon Galloway, Phil Haack, Brad Wilson, K. Scott Allen