SIMPLEST Blazor Authentication And Authorization Tutorial

  Рет қаралды 18,729

Just Blazor Programming

Just Blazor Programming

Күн бұрын

Пікірлер: 49
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
GET YOUR FREE BLAZOR CHEAT SHEET HERE!!!: JustBlazor.com/ Perhaps you need a bit of guidance in landing the job, passing the interview or succeeding in your Software Career? Book a session: contractlancer.com/
@Pillow1-yl1yn
@Pillow1-yl1yn 6 ай бұрын
I signed up "successfully" for the cheat-sheet but I didn't get access. What could be the problem?
@NateNo
@NateNo 2 жыл бұрын
This is by far one of the best KZbin tutorial series I've ever seen (on any topic). Absolutely love the way each tutorial is modular and separated into logical blocks. Makes it incredibly easy for me to reference this playlist for specific topics when I need to. I hope you keep up the awesome work, man! I'm very thankful these videos are made in an easy to digest manor, considering the official documentation provided by Microsoft is lacking/vague in certain areas.
@903koolaid91
@903koolaid91 3 ай бұрын
Thanks a ton you made this super simple!!
@jibranwafi7609
@jibranwafi7609 2 жыл бұрын
*qlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server.* I did the exact steps told, and that was the output I got from literally every tutorial I came across (including this one).
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
I guess its all the tutorials that are the problem
@spontaneousorder5670
@spontaneousorder5670 Жыл бұрын
I have to get back to a Blazor App I'm working on. I have to get AA up and running. I've used the old aspnet Membership databases. I really want to get into policies and roles. I'll have over half a dozen user types, so I'll need a good way to manage access.
@timurryssuly305
@timurryssuly305 4 ай бұрын
My appSettings.json "DefaultConnection" is much shorter: ""DefaultConnection": "DataSource=app.db;Cache=Shared"" Why is this? and how do I solve this?
@WildFactsUnleashed1
@WildFactsUnleashed1 2 жыл бұрын
My browser application is not working in all browsers, showing error faild to find valid digest in the integrity
@kennedymungai1
@kennedymungai1 2 жыл бұрын
Thanks I really needed this tutorial
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
Glad I could help
@TheClevelandBuckeye
@TheClevelandBuckeye Жыл бұрын
Do you have a video for policies and claims in Blazor?
@justblazorprogramming
@justblazorprogramming Жыл бұрын
I thought i did, it was one of the other auth videos im sorry its been a while so i dont remember but the claims are the exact same as how you would do with just a normal asp.net core app
@DanijelJames
@DanijelJames Жыл бұрын
Sweet! Subscribed! 🎉
@justblazorprogramming
@justblazorprogramming Жыл бұрын
Thanks for the sub!
@chezchezchezchez
@chezchezchezchez 2 жыл бұрын
How do I do a password reset? The user needs to activate this. Thank you
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
You basically have to grab the user object and then then reapply the password, it will overwrite the old one because its going to be encrypted again. Thats the gist of it
@amirameri1354
@amirameri1354 Жыл бұрын
Great.How To Publish this webApp (Blazor with Individual ) to iis? I can't publish to iis and get error Http500
@justblazorprogramming
@justblazorprogramming Жыл бұрын
This error could be many things, but the first thing id try is to reinstall then repair your visual studio then try again. You should then get a prompt to allow the IIS certificate once you try to run it ( as admin btw). Click yes then you should be able to if its this specific error. Again its my shot in the dark but good luck.
@dhirenpathak
@dhirenpathak 2 жыл бұрын
Nice tutorial can you please video on wsam authentication
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
Im getting there, there is something i need to finish first before that point. Then i can move on without missing something important (in theory).
@brunosallesdev
@brunosallesdev Жыл бұрын
nice content!
@ComfortablyNum6
@ComfortablyNum6 Жыл бұрын
Hi, sorry I'm lost. Been out of (mediocre) coding for about eight years. This is all new to me. I got the implementation all working. However, I want to develop a site where users log in from the homepage (users added by an admin). What I don't get is where are the forms for login etc? Plenty of pages with links, but no pages with the actual forms. I looked everywhere for them. Surely they don't render by magic! A point in the right direction would be very appreciated.
@justblazorprogramming
@justblazorprogramming Жыл бұрын
There is a folder marked "Areas" in there is where you find those specific forms.
@SpaldingJason
@SpaldingJason 2 жыл бұрын
I'd like to build with dotnet 7 a blazor with jwt. Is there any benefit to waiting?
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
Not really, .NET 7 seems like a lot of optimization along with some new features but you should be fine with using .NET 6. Most of what you probably will be using to do that will stay the same if not then i dont think there will be heavy changes. Granted i have not looked into .NET 7 thoroughly, but from what i could tell it isnt a big jump compared to .net 5 - 6
@mirzaislam6010
@mirzaislam6010 Жыл бұрын
thank you good tutorial
@DonaldMurf
@DonaldMurf 2 жыл бұрын
Around 1:50 you said “it creates one for you basically”. I’m stuck here. I don’t know how to use Microsoft SQL or how to create a server. Anyone have any advice? Thanks.
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
You need to download the software first. Then it will create everything you need and should create that server link you were looking at. Theres a link in the description.
@DonaldMurf
@DonaldMurf 2 жыл бұрын
@@justblazorprogramming I downloaded Microsoft SQL Management Studio 18.12.1 When I open the program>File>Connect Object Explorer, I get a window like the one in 1:46. In the server name box there is nothing for me to copy paste.
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
@@DonaldMurf honestly its been a while since i loaded sql, so off the top of my head im not so sure. However i believe theres other resources to help you here, it could be you are missing the actual sql server package. idk
@DonaldMurf
@DonaldMurf 2 жыл бұрын
@@justblazorprogramming thanks for the help. Appreciate it.
@DonaldMurf
@DonaldMurf 2 жыл бұрын
@@justblazorprogramming I figured it out. I needed to download SQL Server 2019 Express. I only downloaded Microsoft SQL Server Management Studio. Also the server name can be DEVICENAME\sqlexpress like DESKTOP-0123D\sqlexpress
@mohanv7629
@mohanv7629 2 жыл бұрын
Can we use Mysql
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
You should be able to it just takes a bit more work.
@IvanRandomDude
@IvanRandomDude 2 жыл бұрын
I mean, Default UI is ok but is definitely not something I would use in production. If you ignore everything else, just the fact UI/UX looks like it was made in 2005 is enough not to use it in production. I wonder if there are some more modern implementations of Identity available? I would at minimum scaffold all the Identity pages and add better design. At least that.
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
You dont have to, even in the video i say that this isnt the best way to do this. I do think its not completely awful because it gives you a base point and you can choose not to use the templates or whatnot. You can implement your own way of handling this while leveraging the library and use only the parts you want. However if you choose to move away from asp.net core then you are in different territory. The point of the video is more or less to give you the most easy way of implementing a working authentication scheme and authorization model.
@WildFactsUnleashed1
@WildFactsUnleashed1 2 жыл бұрын
Headers are readonly, response has already started
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
This is for both your comments, idk what happening, maybe your build was corrupted cause I literally did what you saw in the video in two different projects.
@fadidib8516
@fadidib8516 2 жыл бұрын
thx
@nikitamartinez1300
@nikitamartinez1300 2 жыл бұрын
♥♥♥♥
@deadMoney2k12
@deadMoney2k12 2 жыл бұрын
Adding claims to the Authorized section is nearly as effortless. Pass the authorized principle down through all components by wrapping the
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
ngl. between us, I needed to finish the video so i didnt get into any of the providers/roles/claims stuff. I also try to limit a video like this to around 20 minutes for youtube algorithm stuff. So In the back of my mind i believed there is a way but i didnt get a chance to dig into it. Ill say as much in the next video when i talk about Roles/Providers/Claims specifically cause I am a fan of the individual account way to teach people how to Authenticate/Authorize as this teaches you most of what you need to understand how to do it with any form, and then dive into the different authentication methods like OAUTH, maybe even 2fA for more utility. Ill see how those videos do and make my decision but definitely going into the authorization piece more. But good job on diving into this on your end, i know you asked about this a few times before.
@fadidib8516
@fadidib8516 2 жыл бұрын
@@justblazorprogramming thx for diving more about this stuff , canmot find any project that shows it properly.
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
You know if you go to the AwesomeBlazor repo, github.com/AdrienTorris/awesome-blazor , theres plenty of resources including this one, its based off a tutorial there, but i added some extra steps in order to essentially show what i went through to make it work. So if you every need something specific just go to that repo
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
Actually they do, its just the implementation i used did not have it. Ill explain it more in depth in another video. But you can add claims and such i just went with the route of not using them for simplicity.
@justblazorprogramming
@justblazorprogramming 2 жыл бұрын
part 2: Individual accounts absolutely have claims, roles, policies. I just didnt put them in the video. I will make another one with a focus on them.
Basic Auth: Roles, Policy, Claims (ASP.Net Core Stuff You Need To Know)
20:19
Just Blazor Programming
Рет қаралды 7 М.
How to implement authentication in Blazor Server from scratch
57:22
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 45 МЛН
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 3,9 МЛН
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 243 МЛН
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 16 МЛН
How to add Authentication in Server-side Blazor | Blazor Tutorial 8
24:44
Blazor Admin Page Tutorial (Roles, Policy, Claims)
1:04:00
Just Blazor Programming
Рет қаралды 16 М.
8 Free and Open Source Blazor UI Libraries
9:42
Claudio Bernasconi
Рет қаралды 42 М.
Whats Wrong With Blazor Adoption
19:27
Just Blazor Programming
Рет қаралды 4,6 М.
Blazor Server Custom Authentication [Blazor Tutorial C# - Part 11]
25:01
.NET 8 Blazor🔥Authentication & Authorization with Identity
45:57
Blazor Server Components - Making Razor Components Easy to Use
42:23
🔒 Identity with a .NET 6 Web API & Blazor WebAssembly
50:47
Patrick God
Рет қаралды 30 М.
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 45 МЛН