what a nice project and nice explanation. I have learned many things from your videos. i accidentally got suggested this and its worth a lot to me. i hope you will post many videos like this. underrated content
@@DevEmpower Excellent tutorial, by far the most comprehensive one I have watched. But, I have one question: @40:29 you add migrations, and core makes predefined database tables, but I already have a User in my database; how do I make migration files based on my User instead of AspNetUsers? Thank you!
@@kresimirsumiga1584 Thanks. Before migration, You don't have the tables. How you can have user? If You have an existing database, You need to use database-first approach. In this tutorial, I used code-first approach
@@DevEmpower Thank you for the reply! Sorry, I wasn't clear... I would use this approach, but I would like that the AspNetUsers table contain additional columns because table User that I would work with is very much similar to this predefined table, can it be done, to add a few more columns to AspNetUsers table, and how can it be done?
Thanks my friend. In backend, You don't need logout. You can watch this video to see how we can implement logout in front-end: th-cam.com/video/tAUVG1p0NNY/w-d-xo.htmlsi=0wjCY2dBefWp1cdq
Very nice and well explained tutorial , everything at one place. Out of context can you please let me know which theme you are using for google chrome , the Arabic once. I really like it.
Thanks. We are adding a default role to user in: AurhService line: 150 with this command: await _userManager.AddToRoleAsync(newUser, StaticUserRoles.USER);
You can install Identity package on that project. Then you can implement the same functionalities. But, Usually the MVC projects doesn't use token and jwt. they use session-based authentication (cookies). I will create a tutorial about it later
@@thesandboxgamingvideos It really depends on Your Structure. Basically, When You have an MVC Project, You don't need API project. You can implement Some API Controllers directly in your MVC Project. I hope I answered true based on your question. If you describe your project more, It is easier to answer.
@@DevEmpower every dev youtuber explains JWT with Login methods so i thought JWT was for admin panels. thats why i asked that. it's actually proctecting API project not login
Please compare Your codes with GitHub repo again. As you saw in the video, I'm writing and explaining the codes step by step to avoid any type of misunderstandings. Also, You can debug Your code to find the problem. In this video, I talked about debugging: th-cam.com/video/n7-DWyGtdW0/w-d-xo.html Hope it helps You 🌹❤
It have compared and everything is the same. It only works when i change issuer and audience to false like below: Can you explain why? ValidateIssuer = false, ValidateAudience = false, ValidIssuer = builder.Configuration["JWT:ValidIssuer"], ValidAudience = builder.Configuration["JWT:ValidAudience"],@@DevEmpower
@@kalixgz We don't create tables manually. We use EntityFrameworkCore package. First we create some entities and then we create a context for them. Then we create a migration and we update our database. This process is explained in video.
@@Kazoda Not Yet 😊 Currently, I'm making another tutorial: Books Store MERN Stack. But after finishing it, I will implement using JWT in react and Next JS 🌹❤
امیرجان مرسی از کامنت متاسفانه کامیونیتی فارسی اصلا استقبالی نمیکنن و متاسفانه وقت گذاشتن روی این موضوع هیچ فایده ای نداره، برای زیرنویس فارسی باید بشینم فایل زیرنویس فارسی تهیه کنم برای ویدیو که خیلی زمانبر هست و استقبالی هم نمیشه، بهمین خاطر کامل سوییچ کردم روی انگلیسی در عین حال، شما ویدیو رو ببین و هرجایی سوال داشتی بپرس، به محض اینکه سوال رو ببینم جواب میدم
If You want to see how we use JWT in a real-world full-stack project, watch this tutorial:
th-cam.com/video/tAUVG1p0NNY/w-d-xo.html
Thank you so much mohammad for providing such quality content in youtube.Really appreciates your effort.
Thanks for Your support my friend 🌹
what a nice project and nice explanation. I have learned many things from your videos. i accidentally got suggested this and its worth a lot to me. i hope you will post many videos like this. underrated content
Thanks Sandakelum. I appreciate that 🌹
@@DevEmpower Excellent tutorial, by far the most comprehensive one I have watched. But, I have one question: @40:29 you add migrations, and core makes predefined database tables, but I already have a User in my database; how do I make migration files based on my User instead of AspNetUsers? Thank you!
@@kresimirsumiga1584 Thanks.
Before migration, You don't have the tables. How you can have user?
If You have an existing database, You need to use database-first approach. In this tutorial, I used code-first approach
@@DevEmpower Thank you for the reply! Sorry, I wasn't clear... I would use this approach, but I would like that the AspNetUsers table contain additional columns because table User that I would work with is very much similar to this predefined table, can it be done, to add a few more columns to AspNetUsers table, and how can it be done?
@@kresimirsumiga1584 Yes, please continue watching. In section 2 this is implemented.
thank you, very clear and able to replicate at .net 8
You're welcome my friend 🌹♥
Very Informational video, please add video to how to use this in CRUD APIs.
Thanks, my friend.
You can check this video:
th-cam.com/video/tAUVG1p0NNY/w-d-xo.html
very nice explanation that show your depth experience. thank you sir
Thanks my friend. I'm happy it was useful 🌹❤
I wish you more subscribers.It's worth it )
Thank you for support 🌹
This is an informative video, and it is very detailed. But what of the logout part.
Thanks my friend.
In backend, You don't need logout.
You can watch this video to see how we can implement logout in front-end:
th-cam.com/video/tAUVG1p0NNY/w-d-xo.htmlsi=0wjCY2dBefWp1cdq
Very nice and well explained tutorial , everything at one place. Out of context can you please let me know which theme you are using for google chrome , the Arabic once. I really like it.
Thanks, my friend. 🌹♥
I don't use any specific theme for Google Chrome. It is the standard chrome.
thank you , its was helpful
You're welcome my friend 🌹♥
Incredible thanks bro!!
Thanks for your comment my friend 🌹
thanks for this awesome video . please add refresh token and change password also in future play list if you get time.
Thanks for your comment my friend. In the future I will🌹
Great Stuff
Thanks for you comment bro. 🌹
Good one where users Roles Defined when register the users?
Thanks. We are adding a default role to user in: AurhService line: 150 with this command:
await _userManager.AddToRoleAsync(newUser, StaticUserRoles.USER);
muchas gracias por este contenido, es lo mejor
🌹❤
pls can you add refresh token to this project I think it will help a lot
Of course, I will 🌷
It would be great if you showed the implementation of the frontend.
Currently, I am so busy because of some interviews. But I will create the implementation video in React library as soon as possible. 🌹
Very good english duste man🤣🤣
Thanks my friend 🌹❤
Thanks Bro....❤❤❤❤
I hope it was useful. Thanks for your comment ❤🌹
how can we use this login method in another mvc application ? i mean for the admin panel
You can install Identity package on that project. Then you can implement the same functionalities.
But, Usually the MVC projects doesn't use token and jwt. they use session-based authentication (cookies). I will create a tutorial about it later
@@DevEmpower so 2 identity package 1 for APi 1 for mvc app
@@thesandboxgamingvideos
It really depends on Your Structure.
Basically, When You have an MVC Project, You don't need API project. You can implement Some API Controllers directly in your MVC Project.
I hope I answered true based on your question.
If you describe your project more, It is easier to answer.
@@DevEmpower every dev youtuber explains JWT with Login methods so i thought JWT was for admin panels. thats why i asked that. it's actually proctecting API project not login
@@thesandboxgamingvideos
Generally speaking, JWT protect your controllers and http methods.
THANK YOU🎉
Thank you for comment🌹
i am getting 401 unauthorised in postman after testing my token? My code is like yours
Please compare Your codes with GitHub repo again. As you saw in the video, I'm writing and explaining the codes step by step to avoid any type of misunderstandings.
Also, You can debug Your code to find the problem.
In this video, I talked about debugging:
th-cam.com/video/n7-DWyGtdW0/w-d-xo.html
Hope it helps You 🌹❤
It have compared and everything is the same. It only works when i change issuer and audience to false like below: Can you explain why?
ValidateIssuer = false,
ValidateAudience = false,
ValidIssuer = builder.Configuration["JWT:ValidIssuer"],
ValidAudience = builder.Configuration["JWT:ValidAudience"],@@DevEmpower
thank you 🙂
I need to see how you made the database
I made it step by step in the tutorial bro. Which part is not clear?
the creation of the tables@@DevEmpower
@@kalixgz We don't create tables manually. We use EntityFrameworkCore package. First we create some entities and then we create a context for them. Then we create a migration and we update our database. This process is explained in video.
Can you make full e-commerce API with jwt
In future, I will ♥
integrate it with reactjs please
I will 🌹
@@DevEmpower Hi, Have you already done that?
@@Kazoda Not Yet 😊
Currently, I'm making another tutorial: Books Store MERN Stack. But after finishing it, I will implement using JWT in react and Next JS
🌹❤
@@DevEmpower Okay, thank you :)
@@Kazoda You're welcome my friend ❤
اگه ممکنه زیرنویس ویدیو رو فعال کنید
امیرجان مرسی از کامنت
متاسفانه کامیونیتی فارسی اصلا استقبالی نمیکنن و متاسفانه وقت گذاشتن روی این موضوع هیچ فایده ای نداره، برای زیرنویس فارسی باید بشینم فایل زیرنویس فارسی تهیه کنم برای ویدیو که خیلی زمانبر هست و استقبالی هم نمیشه، بهمین خاطر کامل سوییچ کردم روی انگلیسی
در عین حال، شما ویدیو رو ببین و هرجایی سوال داشتی بپرس، به محض اینکه سوال رو ببینم جواب میدم
@@DevEmpower ممنون من همین زیرنویس انگلیسی منظورم بود بیشتر مباحث رو متوجه شدم تا جایی که دیدم
حتما سوالی بود میزارم 🙏
@@amirabbas667 عزیزی, زیرنویس انگلیسی که اتوماتیک خود یوتیوب جنریت میکنه, یه دکمه اون بالا هست cc اونو بزنی فعال میکنه, امیدوارم ویدیوی مفیدی باشه
اگر امکانش بود policy based هم بزارید
@@amirabbas667 انشالله در آینده حتما سعی میکنم بزارم
40:10
؟
من خودم زبانم خوب نیست ولی پیشنهاد می کنم رو زبانت بیشتر کار کن .
مرسی از پیشنهادتون، حتما همین کارو میکنم
Great!
Thank you my friend