Call web api service with basic authentication using jquery ajax

preview_player
Показать описание
In this video we will discuss how to pass basic authentication credentials to the Web API service using jQuery AJAX.

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
Рекомендации по теме
Комментарии
Автор

Mr.Venkat, i must say you are simply genius. I watched so many tutorials related to asp.net web api and also created 4-5 web api till now but i never seen any videos which show this much simplicity as well as understanding. I assume that in your upcoming videos you will also include token base security as well. Thanks a lot.

ramchandrathakkar
Автор

Hands down one of the best, easy to listen to and informative channel for coding, development and .NET. Thank you for all you contributions.

raqibul
Автор

I've learn so much from you Mr. Venkat...thank you and looking forward to seeing more of your video's.

sunilanthony
Автор

Thanks Venkat. The tutorial on API is really great.
Need to use password for the type in Employee.html for the txtPassword.
Also in headers: {
'Authorization':'Basic '+btoa(username+':'+password)
}
Once blank space after Basic should come.Otherwise it gives error

poornitest
Автор

Hands down one of the best, easy to listen to and informative channel for coding, development and .NET. Thank you for all you contributions - you have a huge impact on guys like me who want to learn both bergginer and advanced concepts and don't know where to start.

I have one tech question: If you were making an application where a small part would be WPF/UWP/MVVM or some native Windows technology, and the other part would be on a web platform (ASP/MVC), what is the best way to proceed in order to ensure as much code re-use between the two portions of your app? I know Entity Framework can maybe used to share logic for the data access portion, but is there a way to reduce dev workload instead of having to write two separate applications?

munshmachine
Автор

Thanks a lot for this entire series. You did a great job explaining the concepts.

fishtaco
Автор

Hi Venkat, Your tutorials Are just Great, For My colleagues I personally Recommending your Videos. We all Requesting you to Make some tutorial on Xamarin using C#... You are Really Great.

rahimbakashk
Автор

your teaching style is amazing. thank you for that videos .

basimalhomaidi
Автор

Thank you Sir for your great videos. I have been watching your videos since past 2 years and learned many new things. It would be helpful if you can throw some light on Microsoft CRM in your upcoming videos.

kushalmazumder
Автор

Perfect as always! Highly appreciated!!!

samirayusifova
Автор

very good explanation of concepts.. I really appreciate your efforts...

priyankakumbhar
Автор

We are looking forward for Xamarin series? have u any intention of that?

MuhammadSalman-dxxp
Автор

Great, very useful. Thank you a lot. Regards from Costa Rica.

helriperhr
Автор

thanks so much for your series about Web API. It is really helpful :)

hoanglongb
Автор

Well explained. Very easy to understand sir. thanks👍😎

Sakthi
Автор

Thank you Venkat . You are really a genius.

vijaykamble
Автор

Kudvenkat Rocks!


In case some else faces issue after writing this code: Just missed a space in my code after 'basic' on ajax web service call and that did not work as in Authorization value was going to scheme and parameter was Nuill.

rohitsakalle
Автор

Sir I really appreciate your work..You are doing a great job. Sir can u please upload few tuitorial on thread, asynchronous delegate and Tpl....

pariharpravin
Автор

IMPORTANT Reminder (Venkat did not mention on the video)
In the Ajax call, the Authorization header. DO NOT FORGET the single SPACE within 'BASIC_'
It taken long time to find it.

mindeng
Автор

sir what I am today because of your tutorials, I became very happy when I saw your Web api video.
But sir, I need token based authentication in Web api with angular js. I tried some other videos, but I could not understand, perhaps it is because I have been habitual of your videos.

saurabhkesharwani