We now have a functional product catalog that our users can browse, as well as a shopping cart that they can utilize to store their chosen products before making a purchase. However, before we allow them to proceed to the checkout page and place their orders, we need to make sure they have a user account to link the order to in the database. In this chapter, we're going to add authentication and user registration to the app, by making use of the latest features of ASP.NET Core 2.0 to issue and validate JWT tokens.
In this chapter, we're going to look at the following topics:
- Configuring JWT authentication in ASP.NET Core 2.0
- Issuing and validating JWTs
- Persisting authentication state with Vuex and local storage
- Configuring global HTTP headers with axios
- Creating login/register UI components
We have a fair bit of ground to cover...