/securing-aspnet-apps

This is the repository for the "Securing Asp.Net App" course on YouTube

Primary LanguageC#

Course link: https://youtu.be/lmT-kyvsnak?si=8vl3pTkDIAZctT-A

When it comes to securing ASP.NET applications, or any application in general, authentication and authorization play key roles. Authentication is the process of verifying a user’s identity. It checks if the user credentials are correct or not. Authorization, on the other hand, is the process of verifying a user’s roles.

This video provides an overview of token-based authentication, contrasting it with cookie-based methods. Learn how tokens and refresh tokens function, why token-based systems offer enhanced security with shorter expiration times, and the process of generating new tokens. Perfect for understanding secure data access in web applications.

You will learn:

✅ Authentication vs Authorization

✅ Cookie-based vs Token-based authentication

✅ Adding Identity tables using Entity Framework Core

✅ Configuring JWT in Startup.cs

✅ Setting up Authentication controller

✅ Registering a new user

✅ Generating access and a refresh token

✅ Logging in users

✅ Authenticating and authorizing users

✅ Generating a new access token using a refresh token

✅ Role-based authorization