What you'll learn
In this project, you'll start with an ASP.NET Core wishlist application that only supports one user with one wishlist and no security and add in the ability to support multiple users with their own wishlists secured with basic authentication.
Table of contents
Setup
15m
- Set up your local environment for projects. We'll walk you through everything you need to know, including how to install and configure your environment to be able to complete all of the tasks.
Add Authentication Support
30m
- Configure the project so that authentication will be available throughout the application.
Create The AccountController
15m
- Create a controller named AccountController that will handle actions related to authentication.
Create Register Functionality
30m
- Create Views, View Models, and add action methods to the AccountController to add the ability to register an account.
Create Login Functionality
30m
- Fully implement the ability to login and logout of an already registered user account.
Update Home Index View
30m
- Update views to provide links to Login, Logout, and Register actions depending on if the user is logged in or not.
Create Relationship Between Item and ApplicationUser Models
15m
- Create a relationship between the `Item` and `ApplicationUser` models so operations on data happen for a single user's data.
Update ItemController Actions to Consider User
30m
- Update the ItemController and it's actions to use the logged in user information to allow individual users to have their own wishlists.