►► Check out our courses: https://bit.ly/cdmz-courses
►► Support us on Patreon and get the source code: / codemaze
In this video, we are going to learn how to implement JWT authentication inside the ASP.NET Core Web API project.
LINKS MENTIONED IN THE VIDEO:
To visit the whole article, mentioned in the video
►► https://code-maze.com/authentication-...
To visit our site:
►► https://code-maze.com/
FOLLOW US ON SOCIAL MEDIA!
►► / marinko-spasojevic
►► / codemazeblog
►► / codemazeblog
VIDEO SUMMARY:
Securing a web application is one of the most important jobs to do and usually one of the hardest things to pull off. That said, in this video, we are going to learn how to implement authentication in the ASP.NET Core application using JSON web tokens. Also, in the next video, we are going to cover the usage of JSON Web Tokens in Angular applications consuming our API.
Before we get into the implementation of authentication and authorization, let’s have a quick look at the big picture. There is an application with a login form. A user enters the username, and password and presses the login button. After pressing the login button, the application sends the user’s data to the server’s API endpoint. Web authentication big picture when the server validates provided credentials and confirms that the user is valid, it’s going to send an encoded JWT to the client. JSON web token is basically a JavaScript object containing some attributes of the logged-in user. It can contain a username, user subject, user roles, or some other useful information.
On the client side, we store the JWT in the browser’s local storage to remember the user’s login session. We may also use the information from the JWT to enhance the security of our application as well.