
- C#
- Intermediate
About this Course
In this course, you'll learn how to leverage user authentication to secure an application and protect your users' data. You'll update an existing ASP.NET MVC application to use Microsoft's ASP.NET Identity system to implement cookie-based authentication.
What you'll learn
- Support user registration and sign-in/sign-out
- Use authentication to restrict access to parts of an application
- Use SSL to secure communication between the client and server
Introducing ASP.NET Identity
We'll start with overview of authentication and authorization. And we'll see how HTTP cookies can be used to identify users across requests. Then we'll introduce the ASP.NET Identity system and install it into an existing ASP.NET MVC project.
6 stepsAdding User Registration
Now that we've installed Identity, we're ready to add a user registration page. Along the way, we'll learn about the key Identity classes that we'll leverage as we implement authentication in our application.
10 steps-
Overview of Adding User Registration
2:56
-
Adding the User Registration Page
-
Defining Our User Class
-
Adding the ApplicationUserManager and ApplicationSignInManager Classes
-
Updating Our DI Configuration
-
Configuring the Identity OWIN Middleware Component
-
Updating the Account Controller
-
Updating the Layout Page
-
Reviewing User Registration
6:25
-
Section Review
5 questions
Adding User Sign-In and Sign-Out
After providing our users with a way to register with our application, we're ready to support user sign-in and sign-out.
7 stepsSegmenting and Protecting Data
Now that we know who are users are, we can use that information to segment our data. Then we can protect that data so that users can only view and/or modified their own data.
11 steps-
Overview of Segmenting and Protecting Data
1:52
-
Segmenting Data
-
Updating the Database Seed Data
-
Updating the Entries Repository
-
Updating the Entries List Page
-
Protecting User Data
-
Securing Communication Between the Client and Server
-
Preventing Cross-Site Request Forgery (CSRF)
-
Reviewing Segmenting and Protecting Data
6:49
-
Wrap Up
1:57
-
Section Review
5 questions
Teacher
-
James Churchill
Before joining the Treehouse team, James worked as a consultant for over 10 years doing web development using .NET and variety of open source technologies. James enjoys participating in the developer community, presenting at and attending meetups, code camps, and conferences. When not working, James enjoys learning, skiing, playing music, and watching movies.