Token Based Authentication In Web Api MVC | Secure Web Api JWT Authentication | Part-1

preview_player
Показать описание
The ASP.NET Web API is an ideal framework, provided by Microsoft that, to build Web API’s, i.e. HTTP based services on top of the .NET Framework. Once we develop the services using Web API then these services can be consumed by a broad range of clients as follows

Browsers
Mobile applications
Desktop applications
IOTs, etc.
Nowadays, the use of Web API is increasing in a rapid manner. So as a developer you should know how to develop Web APIs. Only developing Web APIs is not enough if there is no security. So, it also very important for us as a developer to implement security for all types of clients (such as Browsers, Mobile Devices, Desktop applications, and IoTs) who are going to use your Web API services.

The most preferred approach nowadays to secure the Web API resources is by authenticating the users in Web API server by using the signed token (which contains enough information to identify a particular user) which needs to be sent to the server by the client with each and every request. This is called the Token-Based Authentication approach.

Advantages of using Token Based Authentication in ASP.NET Web API:
Scalability of Servers:
The token which is sent to the server by the client is self-contained means it holds enough data to identify the user needed for authentication. As a result, you can add easily more servers to your web farm, there is no dependent on shared session stores.

Loosely Coupling:
The client application is not tied or coupled with any specific authentication mechanism. The token is generated, validated and perform the authentication are done by the server only.

Mobile-Friendly:
The Cookies and browsers like each other, but handling the cookies on native platforms like Android, iOS, Windows Phone is not an easy task. The token-based approach simplifies this a lot.

For more video please like ,share and subscribe to my channel.


youtube :

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

Your way of explaining things is awsome but your video quality is very poor. U yoursef watch your video and you will find the quality of your video is very poor. It means you are putting your effort on something and just because of one issue all your effort go in vein.
So pls improve your video quality so that it become useful rather than useless for us.

mojeebhasan