Тёмный
No video :(

Blazor Admin Page Tutorial (Roles, Policy, Claims) 

Just Blazor Programming
Подписаться 4,9 тыс.
Просмотров 16 тыс.
50% 1

Опубликовано:

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@spontaneousorder5670
@spontaneousorder5670 Год назад
Ctrl+k, Ctrl+d autoformats code in Visual Studio. I use the hell out of it. I love your videos.
@jimwoodman1003
@jimwoodman1003 Год назад
Thanks for your common sense explanation. It makes it easy to understand 👍
@netrunner1987
@netrunner1987 2 года назад
Thanks for this video. I ran into errors, but they were all my typos. Got it to all work, now I will try to do a mudblazor version of this.
@dhartipatel5805
@dhartipatel5805 2 года назад
Nicely explained ,Great JOB ,thanks
@TYNEPUNK
@TYNEPUNK 6 месяцев назад
Thanks man, your videos are saving my life, you rock
@deadMoney2k12
@deadMoney2k12 2 года назад
Great job, Karim. Like this one.
@teamrospl2891
@teamrospl2891 2 года назад
Thank you for your video... 😀😀😀😀 Your can use "Ctrl+shift+v" for saw the all the copied data in the IDE and Just select the data and paste it. which you doing at the 7:42
@mahfoudbouabdallah6286
@mahfoudbouabdallah6286 2 года назад
Thanks for the great videos I hope you can make another one explaining how to deal with dynamic roles (not hard coded)
@justblazorprogramming
@justblazorprogramming 2 года назад
Could you explain this, cause you know theres got to be some element of your roles being static such as the name of it. If you want to change the way your roles work or whether a user has different or evolving privileges then you either have to build it around a DB change or around building new policies.
@Thydus.
@Thydus. Год назад
ffs, if you paste code from somewhere else just keep your screen on that for at least a few seconds instead scrolling up and down, it's a nightmare to pause the video at the right time to rewrite it...
@mariewebb2017
@mariewebb2017 2 года назад
Thanks for the video.
@justblazorprogramming
@justblazorprogramming 2 года назад
Yes, you are right
@mariewebb2017
@mariewebb2017 2 года назад
@@justblazorprogramming I really do appreciate your videos. I look forward to watching more of them.
@kawtarelstanej1133
@kawtarelstanej1133 11 месяцев назад
thanks karim
@tubebility
@tubebility Год назад
This tutorial would have been less confusing with a hosted project, by drawing a clear line between client, server, and shared. I'm new to Blazor/ASP, coming from the world of Wordpress/Laravel, and I'm in the process of piecing together a fully functional project template (duende-less blazorwithidentity, mysql, emailsender, blazorise). C# is my favourite language, and I think blazor is mature enough now for me to take the dive. As a complete novice, I can almost comprehend this tutorial, but it's a bit messy seeing signin-manager code inside of a razor file. I can't tell if this is a 'roll your own', and maybe if there's a more standard way of doing an admin page.
@justblazorprogramming
@justblazorprogramming Год назад
This is just a very quick and dirty way of doing this, its supposed to teach you how to implement the process but its not refined. Theres a lot of confusion on claims and such and how to implement them so i just focused on that more than implementing a page that would be more "standard".
@tubebility
@tubebility Год назад
Okay That makes sense I'm still going through your playlist, so I'm sure I'll piece all the parts together eventually. Also, thanks for making these videos.
@kennedymungai1
@kennedymungai1 2 года назад
Lit
@dajma00
@dajma00 2 года назад
Use CTRL-K-D to format code from time to time.
@justblazorprogramming
@justblazorprogramming 2 года назад
never
@abdulrahmanalduraiweesh5120
Laughed at the Lady and Gentlemen intro. Know a place where i can learn what you just taught but for blazor wasm?
@justblazorprogramming
@justblazorprogramming Год назад
That is an excellent question, im trying to figure that out myself.
@kaatverkade
@kaatverkade Год назад
Hai, thanx for creating this video, can I download the solution somewhere?
@TYNEPUNK
@TYNEPUNK 6 месяцев назад
Amazing video thank you. Im having a problem at 39:36 when I add user it says A key cannot be configured on 'IdentityRole' because it is a derived type. The key must be configured on the root type 'IdentityRole'.
@TYNEPUNK
@TYNEPUNK 6 месяцев назад
ah fixed it! changed DbSet AspNetUserRoles { get; set; } to public DbSet AspNetUserRoles { get; set; }
@TYNEPUNK
@TYNEPUNK 6 месяцев назад
Where is the discord? Also one thing I dont understand is the hardcoded password, so you make a user add a role, then how do they change their password? it would be good to know how to add a role to an existing user too, like select them from a list and add role to them. i presume you were just sort of doing it as an example. im very new to blazor but these vids are great thanks.
@ElCidPhysics90
@ElCidPhysics90 Год назад
At around 17:15 you said if grabbing from database you must use OnIntializeAsync. Why is that?
@justblazorprogramming
@justblazorprogramming Год назад
The simple reason is because the OnInitialize methods are executed when the component has completely rendered. You dont want to load the data earlier than when you know the component is there and ready.
@fleedum
@fleedum 2 года назад
I had already started using JWT tokens and didn't want to rely on Identity magic too much. Altho I did seed custom roles and assigned them to a user. Not using the AuthStateChanged event has been the only hurdle for now but I worked around it. I can do most with custom logic, I'll use the built-in stuff next time. The thing I'm stuck on now, is how to make sure the Admin can also do what the Editor can without explicitly including the Admin role everywhere. Is it done with policies? I understand Identity can't know the hierarchy of the customly seeded roles.
@justblazorprogramming
@justblazorprogramming 2 года назад
Policies allow you to have logic when you check for claims. As long as you have access to the claims.
@fleedum
@fleedum 2 года назад
@@justblazorprogramming I now passed the roles of a user as claims in the JWT token (not best practice?). Altho I wonder how Blazor WASM would handle policies... Probably the same way? Add the policies as claims to the JWT token? Seems odd tho but if not like that, I can only think of magic.
@clsferguson
@clsferguson Год назад
Hey, I've been watching a lot of blazor server videos. I'm working on a project, in it, I have a table that lists all the users. I want to also show the users roles in the table. I was at first trying to use usermanager, but looping through the users to get the roles throws an exception. I imagine because it doesn't use a dbcontextfacory to access the database. Do you know the correct way to do this? For now I just created my own repository and method to use a dbcontextfacory and get that info. But I would like to not have to do that. Thanks.
@mohamedyounesse
@mohamedyounesse Год назад
i can do that in sqlite ??
@justblazorprogramming
@justblazorprogramming Год назад
I believe you can, though i havent tried
Далее
How to Create Custom Policies In Blazor (.Net Core)
36:22
Whats Wrong With Blazor Adoption
19:27
Просмотров 4,5 тыс.
МАМА И ВАЛДБЕРИС
00:48
Просмотров 717 тыс.
Is Blazor Being NEGLECTED?! (In 2023)
7:55
Просмотров 2,2 тыс.
8 Free and Open Source Blazor UI Libraries
9:42
Просмотров 38 тыс.