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

preview_player
Показать описание
💻 Use Code LONGERNIGHTS to get 20% off on any course or plan!

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
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
Рекомендации по теме
Комментарии
Автор

A complete tutorial with Blazor, Oauth and Roles would be really amazing because authentication and authorization are quite complicated at the beginning but almost indispensable for every project.
Thank you so much Patrick !

YuzzyBee
Автор

It is like you are in my head - I was thinking about using MS Identity with Blazor and you alert popped up. You have supernatural insight.

FredHendrix
Автор

Great Video - but is it possible to use this without de license of duende? maybe a tutorial with openiddict or similar? *thubsUp for this Video

MarioStaats
Автор

Patrick you are awesome!
Thank you for the content you share with your viewers. I/We are learning a lot.
Security/Identity is one of the main areas I want to understand and get right for all my projects.
I purchased your "Authentication & Authorization in . NET 6 with JSON Web Tokens (JWT), Refresh Tokens & Roles" course and I learnt a whole lot.
The question I have is, how can I do the same thing in that course using Active Directory on-premises?
Since Active Directory would has all users, how do I authenticate users via Active Directory on-premises to generate Access Tokens, Refresh Tokens, with claims and roles info to secure the resources ?

ricardothomas
Автор

Thanks for the great tutorials! I appreciate how much time and work you must spend making them. At 5:57 in the video a readme appears that suggests licensing may be required. I followed the link and it looks like many businesses would need a rather expensive yearly license from Duende to use this authentication.

rdagger
Автор

Please can you point me to a tutorial where .net 6 API with identity is taught. I don't want to use blazor I want use angular or rather someone else does frontend so I just want API that I can expose for the frontend engineer

callistusogu
Автор

The thing that bothers me is that all of these tutorials use SQL Server which is fine but try and deploy that. It will cost like $127/month for a cheap "DEV" SQL Server instance on Azure.

You have one tutorial where you build a blog and you use Sqlite and I tried that but when I deployed the project it stopped working. I haven't been able to figure out how to deploy a Sqlite database on Azure.

Could you please maybe make a short video where we can have:

Blazor
A cheap or free database that you show how to deploy and get it working?

All I want to do is create a simple blog for myself and I'm not able to pay $100+/month to run it.

I'm one of your supporters BTW ;)

Denvercoder
Автор

Great tutorial!!!! can you please do one the complete Identity authentication with roles?

bayesdiarra
Автор

Hello Patrick, thanks for the class, I've a doubt, if I need that de principal page of project will be /Identity/Account/Login, how can I do this? I don't want that the principal page will be index.html, however if the user is authenticated must redirect to index.html.

leonardojosevargashernande
Автор

Sir can u make a blazor upload image save to database and save to folder

lantisdylan
Автор

Tank you for your nice video. But after all this, how to deploy website with blazor webassembly with host and individual account to external server? There are not any video or tutorial for this step.😢

amirameri
Автор

Honestly your tutorial is counterintuitive. You didn’t started from the scratch. You just jumping from place to place. Hard to understand as to what is going on. And you are way too fast.

torrvic
Автор

Great video, Patrick! This stuff's non-trivial and you explain it so well. Do you mind doing a similar video, combining Identity + Blazor WebAssembly + JWT tokens? It can build on this video. Thanks again!

fridayman
Автор

This is pure gold! I've been beating my head on the desk trying to figure out this type of authentication and this is a concrete, pragmatic description of this process and gets me exactly what I need. Thanks so much!

bowend
Автор

Why do you create the SuperHero class in the shared folder and not the Models folder in Server ?

EidurMoller
Автор

Thank you patrik sir, we will would much appreciate your help

ranjisnnirma
Автор

Great was a video I wanted to ask you :)

Totti
Автор

Am working on this right now, could not have come at a better time! Thank you.

Duelweb
Автор

OMG I've been so eager to learn about this! Was looking at other tutorials and was getting super confused going through it so I can't wait to see this!

Artmageddon
Автор

So if we use identity we can do without jwt right?

Totti