Home » Education » 🔒 Identity with a .NET 6 Web API & Blazor WebAssembly

🔒 Identity with a .NET 6 Web API & Blazor WebAssembly

Written By Patrick God on Tuesday, Jul 05, 2022 | 05:42 AM

 
🚀 Become .NET & Blazor Pro: https://dotnetwebacademy.com 📧 Newsletter: https://newsletter.patrickgod.com/ 💻 GitHub: https://github.com/patrickgod/BlazorIdentityTutorial 🐦 Twitter: https://twitter.com/_PatrickGod 📓 Articles: https://medium.com/@patrickgod 🎥 Skillshare: https://www.skillshare.com/r/user/patrickgod?gr_tch_ref=on&gr_trp=on 🔥 Blazor E-Commerce Course: https://www.udemy.com/course/blazor-ecommerce/?couponCode=YOUTUBE 🔥 Blazor Bootcamp: https://www.udemy.com/course/blazor-webassembly/?referralCode=647B4EAACD6D8E4E6872 Table of Contents: 00:00 🔒 Identity with a .NET 6 Web API & Blazor WebAssembly 03:39 Create the Project 06:11 Solution Overview 07:29 Run Application for the First Time 10:31 Use SQL Server Management Studio for the Database 12:18 Change the Connection String 13:12 Install EF Core Tools 14:39 Apply Migrations 18:58 Register a User 21:20 Scaffolding Identity Files 27:33 Add a Relationship to the ApplicationUser 30:43 Add a new Migration 31:49 Add Super Heroes 32:42 Add a Controller to GET related Super Heroes from the Database 37:43 Implement Web API Call on the Blazor Client 39:26 Test the Implementation 40:18 Use the Include() function to load the related Super Heroes 41:13 Utilize the UserManager of Identity 42:57 Load related data with AutoInclude() 44:18 Use the AuthenticationStateProvider to get the current User's Authentication State 🙏MANY THANKS TO THESE LOVELY PEOPLE: Piotr Franczak Jan Trichter Tom H. Ali Ashley Gahl Daniel Viveros Mehmet Ali Ege Winther harry j @Alaffer Sam Catlow Jim Brian Williams Gonzo Jonas Ariel Sartor Andy Benson @stevelikespies Raphael Lukas James Goforth @williamdevine Doug Nelson Arif Hasanov @kohji1712 @dlb78dlb Thomas Korsgaard FastTrak Jeff Sager Dan Moyer AlgoMarket Mennskr Simon Michael Mel Hermann Rösch Jim McNeal Kieron @mgrainger231 Gerrit Esmeijer Axel Kareem Skinner Joaquim Alain Legrand Per Rieland @prodrigu75 Greg Brendan Maunder Stageoner Andrew Campbell pascalditzfeld PovilasSimanskas Ameet Jayawant jenö Marco Otilli Mark l33ter alibux g.dassel Luke Vincent mrcl Alain Legrand Thomas Werner István Csibor Grant Burdon @gianluigiconti Gerrit Esmeijer Illia Németh-Pók István Michael Mel Marko Zdilar GerryB @DADA_universe Domen Hren @heroesch Carey Peter De Tender Baris Keskin @Big_Bear_27390 Mathias walter e watkins Günther Dassel Axel Josh Daniel Huber Fredric Adell Juan Carlos Manolis Pajani P. Jonas Granlund Bobby Kristina @xamarin007 #DotNet #Identity #PatrickGod