Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

ASP.NET Web API - Token Based Authentication Tutorial

via freeCodeCamp

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

Reviews

Start your review of ASP.NET Web API - Token Based Authentication Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.