ASP.NET Core: Token-Based Authentication

ASP.NET Core: Token-Based Authentication

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 1h 59m | 382 MB

Are you a developer needing to learn about token-based authentication? This course deep dives into the difference between authentication and authorization, the difference between traditional and token-based authentication, and how to set up this new authentication mechanism in .NET Core applications. Instructor Ervis Trupja steps through everything you need to get started with authentication, then shows you how to set up token-based authentication to generate new access and refresh tokens. He covers generating an access token using a refresh token and explains how to sign up and log in users using tokens. Lastly, Ervis demonstrates how to add role-based constraints and configure roles as part of the token claims.

Table of Contents

1 Why use exception token-based authentication
2 What you should know

1. Getting Started with Authentication
3 Authentication vs. authorization
4 Cookie-based vs. token-based authentication
5 What is identity platform
6 JSON Web Token

2. Token-Based Authentication
7 Injecting TokenValidationParameters
8 Refreshing expired tokens
9 Setting up Entity Framework Core
10 Adding default identity tables using EF Core
11 Configuring token-based authentication
12 Adding the authentication controller
13 Registering new users using UserManager
14 Logging in users
15 Generating an access token
16 Adding the RefreshToken table
17 Generating and storing refresh tokens

3. Role-Based Authentication
18 Seeding the database with roles
19 Adding role claims to tokens
20 Adding role authentication to a controller
21 Adding multiple roles to a controller

22 Next steps for learning more token-based authentication