Blazor Authentication can be a tricky subject in .NET 8. The reason for this is that authentication has drastrically changed when compared to how we implement it in earlier versions, no matter if Blazor WebAssembly or Blazor Server. Therefore in this video my aim is to walk you through what has changed and explain you exactly how authentication works in Blazor in .NET 8. We'll also tackle some common practical tasks like implementing a redirect to login and what could potentially go wrong there.
Join this channel to get source code access and other perks:
/ @codewrinkles
Also follow me here:
✅Blog: https://codewrinkles.com/
✅Facebook: / danpatrascutech
✅Instagram: / danpatrascutech
✅TikTok: / danpatrascutech
✅Newsletter: https://codewrinkles.eo.page/newsletter
Content
1. Intro: 00:00
2. Authentication setup: 00:25
3. Middleware GOTCHA! 02:15
4. Authentication endpoints: 03:12
5. Email and Redirection services: 04:43
6. Revalidating Authentication State: 06:04
7. User registration: 09:06
8. Blazor Login Functionality: 11:46
9. See it in action: 12:48
10. Redirect to Login in Blazor: 14:00
11. Revalidating Authentication in action: 16:20