Get 20% off all career paths from fullstack to AI
AI, Data Science & Cloud Certificates from Google, IBM & Meta
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course demonstrates how to add token-based authentication to an ASP.NET Web API. It covers identity tables with EF Core, authentication configuration, user registration and login, access and refresh tokens, and role-based authentication.
Syllabus
- 0:00:00 Introduction
- 0:02:07 Authentication vs Authorization
- 0:04:34 Traditional vs Token-based Authentication
- 0:14:10 Adding Identity tables with EFCore
- 0:21:55 Configuring Authentication in Startup.cs
- 0:33:07 Setting up Authentication Controller
- 0:37:54 Registering a new user
- 0:47:36 Generating an access and a refresh token
- 1:02:38 Logging in an existing user
- 1:14:10 Get access token using the refresh token
- 1:41:41 Adding role based authentication
- 2:02:55 Thank you
Taught by
freeCodeCamp.org