In .NET 8, Identity has gotten a big refresh. One of the more hidden features of this is being able to use Endpoints to manage Identity (including Login, Registration, etc.) .Let me show you how it works:
00:00 Introduction
00:35 Creating the Project
03:19 Registering with the Default Project
04:29 Using an API
05:37 Problem with Securing the API
06:24 Adding Bearer Token Support
07:31 Creating an API Policy
09:39 Using ApiEndpoints
12:57 Wrapping Up