This course will be retired on July 14, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed User Authentication with ASP.NET Identity!
You have completed User Authentication with ASP.NET Identity!
Preview
Let's take a look at what we'll be covering in this section.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
[MUSIC]
0:00
Our web app now has a user registration
page that allows users to register by
0:07
creating a new account.
0:10
But we don't have a way for
them to return later, and
0:12
sign in using their existing account.
0:14
In this section, we'll resolve that issue
by adding support for user sign in and
0:17
sign out.
0:22
Our user Sign In page will be
what you might expect it to be,
0:22
a simple form that prompts the user for
their username and password.
0:27
Once they successfully sign in, they'll
be redirected back to the homepage.
0:32
When the user has completed their session,
0:37
they can click the Sign Out
button to sign out.
0:39
In this section we'll start with
adding support for sign-in and
0:43
sign-out by updating
the account controller class
0:47
with the necessary action methods, and
we'll add a new view model and view.
0:50
We'll keep our code organized and tidy by
refactoring the menu into a partial view.
0:55
Then we'll update the menu partial view,
so
1:00
that it displays the current
user's identity.
1:03
And finally, we'll wrap up the section
by seeing how we can restrict
1:06
access to specific routes in our web app,
so that users are required to sign in.
1:10
Are you ready?
1:15
Let's get started.
1:16
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up