Authenticating Web API Using ASP .Net Identity and JSON Web Tokens (JWT)

preview_player
Показать описание
In this video, we talk about how to Authenticate Web API applications using Asp .Net Core Identity and validate the incoming requests using JSON Web Token (JWT).

⏱️VIDEO CHAPTERS⏱️⏱️
00:00 - Intro
00:11 - Identity Context
05:53 - Register User and Login
21:30 - Add Authentication
25:17 - JWT Configuration
29:10 - Generating JSON Web Token
38:29 - Testing using Postman

Learn how to implement secure authentication for your ASP.NET Core Web API application using ASP.NET Identity and JSON Web Tokens (JWT).
In this tutorial, we'll walk through the process of creating an Identity context using Entity Framework Code First, registering users in the database, and logging them in. We'll also show you how to configure your Web API to use JWT for authentication and demonstrate how to generate a token for JWT.
Follow along as we test our application using Postman.
By the end of this video, you'll have a solid understanding of how to authenticate Web API using ASP.NET Identity and JSON Web Tokens.

#csharp #dotnet #aspdotnetcore #webapi #identity #jwt
Рекомендации по теме
Комментарии
Автор

This explanation of JWT and Identity is the best I've found! It's really clear and easy to understand.

aneeshamp
Автор

Senior Developer indeed. You are just awesome. You know the flow. If I stay with you for 2month my programming life cannot be the same. You know exactly what you are doing. You know it should work and if it does not work you know why it refuse to work. You are a great Boss and I cut cap for you.

orjisamuelobinna
Автор

I'm from Shiraz, and I'm so grateful for your helpful content. It's been a pleasure learning from you.

farapar
Автор

This really helped me a lot after a painful weekend trying to figure this out.

ashleygahl
Автор

Actually one of the best guides on Identity and Jwt! Thank you so much.

wlwmxgc
Автор

Amazing video and clear explanation about the topic. New suscriber from Argentina!

augustorobles
Автор

You're awesome, man! This is just what i needed. You helped me a lot with this tutorial!!! Keep going :)

noxiandaddy
Автор

The best person who displayed this section 🙏🏻

Go ahead man 👍🏻

ibrahimalrabee
Автор

Excellent Content, and valuable tips, as always; thanks for sharing.

hesamkalhor
Автор

Loved this video, really insightful compared to watching someone copy and paste code ..

karlpjd
Автор

That you have provided such wonderful content, kindly implement role-based authentication.

abbassafi
Автор

Excellent tutorial, Thank you so much.

zeinabchabok
Автор

thank you so much for uploading such quality content.

deanambrox
Автор

Excellent tutorial and thanks for the code too!

CarrigansGuitarClub
Автор

Thank you so much, you make such a difficult concept to implement very simple. I appreciate it

pt_trainer
Автор

Sensational! Great explanation. I have a question: I need to call the controller of a second application and have it recognize the token generated by the first application. What is the correct way to do this? Can I generate the token in the first application and add it to a session cookie to be read by application 2, or is there a better way?

pablonascimento
Автор

"Could you please explain what the Employee model is used for? I only noticed its presence in the instructional video."

b.official
Автор

There are some things I would improve:
- Your endpoints are not restful... you shouldn't be using actions as endpoints (as /register or /login). a good restful endpoint would be for example POST /auth and GET /auth
- The results for your endpoints should return "Bad Request" only when it's really a bad request... an incorrect login should return 403 Forbidden

Автор

This was an amazing video. Exactly what I needed for my project, and you do such a great job of explaining what you're doing as you're doing it. Do you have a Paypal or some other way I could send you a tip for this?

zimmermr
Автор

Great video, are you planning one version using azure ad as a jwt provider? Would be great if you make this version. God bless you.

opg