How to add Authentication in Server-side Blazor | Blazor Tutorial 8

preview_player
Показать описание

Hello everybody I'm Nick and in this Blazor tutorial I will show you how to add authentication support in your server-side Blazor application. Keep in mind that this is applicable ONLY on server-side Blazor. Client side Blazor or WebAssembly Blazor will have its own video in the future. In order to implement Blazor authentication I will be using the built in ASP.NET Core Identity, Entity Framework Core and SQLite.

Don't forget to comment, like and subscribe :)

Social Media:

#blazor #tutorial #auth
Рекомендации по теме
Комментарии
Автор

Gold to the first person to post a video showing how to properly generate authentication and authorization components using Blazor WITHOUT littering the project with Entity Framework, as so far, after looking far and wide, I have found no one.

jasonargo
Автор

Good practice and respect for subscribers when posting sources code. This is for the future!

Serjaru
Автор

Fantastic tutorial! Very helpful and works like a charm. One request though for a follow up video, I guess: could you possibly walk through how to add user roles to this process. I want to have various roles like Admin, Contributor, Readonly, etc. I know there are tables in the created database like Roles and UserRoles where such association is created, but how do I have those populated when users are created and then how do I retrieve this information to restrict access to various components accordingly? This would be very very helpful indeed!

RandomPerson-nhyk
Автор

Great video !
How would you handle the authentication process with an external WebApi and JWT token ?

thibaudgalland
Автор

Thanks for the clear explanations, it was very easy to follow

onnuttig
Автор

Great thanks - fits it well with a current project.

iancarr
Автор

at 12:55 when you add the logout link to _LoginPartial it should be a submit button inside a form so that LogOut.cshtml can handle the post. Otherwise it doesn't do anything but display a blank page.

DeathStarKitty
Автор

Thanks for the series. Can you do the login that using razor component for Blazor server?

trongphan
Автор

Hello my friend, do you have a tutorial on ?

KenzoArts
Автор

What if we are using an external API to login using JWT and an external REST API to send and receive data, and we are using the Blazor app as if it was a Client which isn't directly connected to a database of its own? How would we then do this authentication/authorization?

morph
Автор

I could not find your CLIENT-SIDE video. Also, no videos on WebAssembly Blazor at all? :(

whynotsquat
Автор

Excuse me, are you using here the Authentication option when creating the project template from zero? how can i use this authentication option adding a postgreSql database for users data?

joaquinlion
Автор

Thanks for Video,
What is the name of IDE ?

shahab
Автор

Try add scaffild identity pages for customizing and it broke your project

iteospace
Автор

Sir how about blazor server dealing with identity server?. 😊

rainron
Автор

If you use visual studio and select authentication support, when you create the project then all you showed comes out of the box

fahadmullaji
Автор

How can we set Identity layout to our blazor layout?

bashirmanafikhi
Автор

not found...the .AddDefaultIdentity ..


<PackageReference Version="5.0.0" />
<PackageReference Version="5.0.0" />

wsystems
Автор

Now make the same video without using entity framework

christianrazvan
Автор

I am a little confused because it seems like Identity Server 4 isn't free for Production.

petemartinez