How to implement Basic Authentication middleware in ASP.NET

preview_player
Показать описание
#csharp #csharp11 #dotnet #dotnet7 #authentication

Some of my popular videos:

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

Really helpful and down to the point, thank you sincerely!

Val-vmqu
Автор

Please cover OCTA and other authentication patterns which we using in real world applications. once again thanks for sharing such kind of videos.

sreenuksr
Автор

Thanks for the video. Really helpful. Can you please explain me why did we create a variable 'relm' inside the handler?

jaypawar
Автор

Great tutorial. I have a question I don't see you using the relm string.

jimmydavila
Автор

Bro I hosted the swagger site in ii's is there any problem in that I am always recieving the auth header as null

Christo-yqfx
Автор

what is the actual use of app.useauthentication() or app.useauthorization() middleware? Cant we use that for implementation? I am kind of confused on its role.

avinashsharma
Автор

how to use AllowAnonymous with this middleware?

hyipinvestorkhmer
Автор

the if is wrong, because if the both conditions doesn't match it will be fine, but in this scenario can work with the right user and wrong password because is an && condition

gabrieldisante
Автор

you can reject the request with
context.Response.StatusCode =
await

danyclassique