Implementing basic authentication in ASP NET Web API

preview_player
Показать описание
Text version of the video

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.

Slides

All ASP.NET Web API Text Articles and Slides

All ASP.NET Web API Videos

All Dot Net and SQL Server Tutorials in English

All Dot Net and SQL Server Tutorials in Arabic
Рекомендации по теме
Комментарии
Автор

Thanks a lot Sir. you are true generous about knowledge...God bless you.

pandeprashant
Автор

In a thousand years I could not have figured that out from the Microsoft documentation, yet you had me up and running with actual basic authentication in less than 20 minutes. Thank you thank you thank you!

gregwmay
Автор

You have been my guide, my tutor, my teacher, my way of coding for years!... Thank you so much for so many many hours of teaching... You are The Man!

franciscoarmand
Автор

Faultless - without doubt the best ever online tutorial I have come across, I can see myself spending many hours looking at your other videos. Thank you for all your hard work.

derekmwanza
Автор

I haven't tested anything yet, I am just watching the whole course to understand the things at first, but it is really wonderful! thank you!

MohammedNoureldin
Автор

true genius. Teacher of the year needs to go to you sir. Thanks many tons

StreamBits
Автор

searched a lot of examples for basic authentication over internet, found this easy and very understandable. Tnx for the vdo

vamsiwelcome
Автор

Sir, Thanks a lot for web api tutorials, I've learned so much from you.

igor
Автор

Even complex things are simplified at your channel.
May all success comes to your way! Thanks

rajkumararora
Автор

There is a typo in text version of video
You have mentioned that to enable basic authentication through entire app you need to add line
config.Filters.Add(new RequireHttpsAttribute());


But the correct line should be :
config.Filters.Add(new

nageshajab
Автор

Thanks For your time .. you are the best on YouTube

Omar.bin.khattab
Автор

Your tutorials are excellent and comprehensive, thank you. I have a question with this lesson.
When using the BasicAuthentication attribute with RequireHttps attribute, the result of the GET request is a redirect and then a 401, even with proper credentials. Removing the RequireHttps attribute allows the authentication to work properly.
Are the credentials being lost in the redirect?
Is there something that should be added to the RequireHttpsAttribute class?

einar
Автор

You don't need to go the the decode/encode website. Using Fiddler, go to Tools/TextWizard... and put your username:password in there (female:female or male:male per the tutorial). Also NOTE when talking about applying the BasicuAuthenticationAttribute filter in WebApiConfig, otherwise your http request will go unauthorized.

roidbot
Автор

When we use RequireHttpsAttribute and BasicAuthenticationAttribute attribute together then it does not work because when it switches from HTTP to HTTPS it does not pass the Basic authentication token.How to do this?

adityapathak
Автор

Great explanation as always we expected from you..Thank you so much...

girijesh-mca
Автор

Great example ! Did you forget the try catch in your OnAuthorization method??

BasVolkers
Автор

Thank you for such amazing tutorials. i am following you sins 3 years. I find every solution here. This is my request please make another tutorial for Roles for webApi. Thank you Sir

harisahmed
Автор

How does this differ from using the IDENTITY FRAMEWORK ?

trustingod
Автор

Dear Sir,
You have given BasicAuthenticationAttribue as the class name but use only the word BasicAuthentication to decorate action method. In the case of enabling CORS you use full class name. Could you please expalin this?

aneeshkp
Автор

request youtube developers atleast block ad sense for such type of vids no ads

basitnisar