Тёмный

Asp.Net Core Web API - Login and Logout with Angular 7 

CodAffection
Подписаться 146 тыс.
Просмотров 188 тыс.
50% 1

JWT User Authentication Implemented in Asp.Net Core Web API with Angular 7.
Points discussed :
- How to design a login form in Angular 7.
- Implemented JWT Authentication in Asp.Net Core Web API.
- Consume Secure API Web Methods from Angular App.
- Make private routes in Angular 7 Application.
- Use of HttpInterceptor for Sending Json Web Token.
Prev. User Registration Video :
► goo.gl/RZ33mk
📂 GitHub Repository
► goo.gl/ns34D5
💖 Buy me a Coffee
➤ bit.ly/3L36ut4 (PayPal)
➤ bit.ly/3VF0iPT (Razorpay)
🌀 Related Videos
goo.gl/RZ33mk : User Registration (Prev. Video)
goo.gl/ijPZQk : .Net Core Web API CRUD with Angular 7.
goo.gl/AL18CP : Asp.Net Core MVC CRUD
goo.gl/ZHDEhP : Master Detail Web API CRUD + Angular
goo.gl/fJSrpX : Angular Login with Web API
🔗 Find me in
Udemy : bit.ly/3RtyQSB
Facebook : / codaffection
GitHub : github.com/codaffection
Discord : / discord
Twitter : / codaffection
#Angular #AspNetCore #CodAffection

Опубликовано:

 

16 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 237   
@CodAffection
@CodAffection 5 лет назад
goo.gl/RFY5C2 : Subscribe to CodAffection goo.gl/bPcyXW : Buy me a Coffee goo.gl/RZ33mk : User Registration (Prev. Video) bit.ly/2GmF7dx : Role Based Authorization (Next Video) goo.gl/ijPZQk : .Net Core Web API CRUD with Angular 7 goo.gl/ZHDEhP : Master Detail Web API CRUD with Angular
@sulaimanahmedz5826
@sulaimanahmedz5826 5 лет назад
It has been two weeks we are still waiting for the video sir.
@samuelw5860
@samuelw5860 4 года назад
hello can u make the asp.net core version instead angular 7 ? :(
@gleamofcolor
@gleamofcolor 4 года назад
Thanks , I took it from github
@diegoalbertogaribayramos3583
@diegoalbertogaribayramos3583 4 года назад
Thanks a lot for that example of JWT auth, was so helpful for me. Also your explanation went to the point, again thanks a lot and have a good day!
@AzizHmidi-kp2qr
@AzizHmidi-kp2qr 10 дней назад
I was stuck for a whole week on getting the user into my angular part, You got my subscribe
@mojdeh.bahadorpour
@mojdeh.bahadorpour 2 года назад
The tutorial is one of the best that I've ever seen! Thanks.
@I_am_FahadKhan
@I_am_FahadKhan 5 лет назад
Exactly what i was searching for. Thank You Sir you are amazing .
@hibarahiba
@hibarahiba 4 года назад
Thank you so much for your work ! well explained, couldn't find better!
@garth-baker-blog
@garth-baker-blog 4 года назад
Your video content is really good. Thanks for all the vids man. :)
@zakirqamar8443
@zakirqamar8443 5 лет назад
Thank you so much mate! I was eagerly waiting for your second part. :) Very clear and informative video, keep up the good work!
@CodAffection
@CodAffection 5 лет назад
thanks for your wonderful feedback, let me know if you have any topic to be discussed in asp.net core or angular.
@zakirqamar8443
@zakirqamar8443 5 лет назад
@@CodAffection please create a video on VirtualScrolling and DragDrop functionality using Material Design.
@outviteslb8143
@outviteslb8143 4 года назад
this is really good, good for beginner and intermediate developers
@sauloalmeidadev
@sauloalmeidadev 4 года назад
You're the best, thanks! BRAZIL HERE!
@Eragoth186
@Eragoth186 5 лет назад
Love your videos, really helpful. Kep it up!!!
@dineshk7337
@dineshk7337 4 года назад
Thanks!. Well explained. Couldn't find better!
@sunilanthony17
@sunilanthony17 5 лет назад
This is awesome. Exactly what I was looking for...Thank you
@CodAffection
@CodAffection 5 лет назад
glad you found the video helpful. let me know if you have any topic for upcoming videos.
@parisanejatian8940
@parisanejatian8940 4 года назад
thank a lot for your helpful videos, keep going . you are an awesome developer
@DebasmitSamal294
@DebasmitSamal294 2 года назад
Wahh!!! Excellent sir. I appreciate your effort
@PatrickImboden
@PatrickImboden 4 года назад
Very good video! Worked as explained Thanks !
@abdelnaimi1226
@abdelnaimi1226 4 года назад
Thank you very much for the course
@arunkumarthirumeni6545
@arunkumarthirumeni6545 3 года назад
Heartly thanks! your video is very very helpful.
@TheVR7
@TheVR7 3 года назад
in both videos - registration and log in one, "first of all" was not harmed in making these videos 😂🤣🤣. Great content bro, subscribed and shared !!!!!!
@usmanhabib3390
@usmanhabib3390 8 месяцев назад
You have earned a subscriber GOD Bless you & Thanks
@NgocDucDo
@NgocDucDo 7 месяцев назад
Thank you very much for your videos.
@Piotruch88
@Piotruch88 4 года назад
Thank you so much for your video!
@relliv2019
@relliv2019 4 года назад
thanks! and awaiting refresh token example :)
@2002mcamail
@2002mcamail 3 года назад
Excellent Tutorial!!!
@DONWARDSPIRAL23
@DONWARDSPIRAL23 5 лет назад
Thanks a lot! Great video
@yazanghafir8304
@yazanghafir8304 3 года назад
Great content man!
@bilgekaankaplan1141
@bilgekaankaplan1141 3 года назад
great video i respect
@kostiaspongo
@kostiaspongo 4 года назад
Great!!!! Good video.
@abdallahmedhatabdelslamkha7669
Awesome sir, thanks very much i have learned more things by u thanks again
@CodAffection
@CodAffection 5 лет назад
glad you found my tutorials helpful.
@abdelmounaimelhili4537
@abdelmounaimelhili4537 4 года назад
Great tutorial, thanks. It helps me a lot.
@CodAffection
@CodAffection 4 года назад
Glad to hear that!.
@singian28
@singian28 3 года назад
Thank you very much
@byronvinicioreamanobanda4554
@byronvinicioreamanobanda4554 3 года назад
excelente video saludos desde Ecuador
@adheeshadeshan608
@adheeshadeshan608 3 года назад
Thank you so much
@harshaserasinghe5606
@harshaserasinghe5606 4 года назад
Excellent tutorial. Keep up the good work.
@CodAffection
@CodAffection 4 года назад
Glad you found the video helpful.
@ReadyVred
@ReadyVred 5 лет назад
nice tutorial, keep up the good works!!
@CodAffection
@CodAffection 5 лет назад
My pleasure. let me know if you have any video suggestion in .net core/ angular.
@girmamoges941
@girmamoges941 4 года назад
Great work
@harithsufri7874
@harithsufri7874 3 года назад
Thank you sir
@sulaimanahmedz5826
@sulaimanahmedz5826 5 лет назад
Please upload the next video fast cant wait longer.
@vasilkaptselau8032
@vasilkaptselau8032 5 лет назад
Thank you for your tutorial. Could you record video how to deploy this app to Azure or AWS. Thank you
@abhijitparida7599
@abhijitparida7599 2 года назад
Thanks a lot
@ziedbenazzouna1195
@ziedbenazzouna1195 5 лет назад
thank you so much . Please add role based authorization like you did with asp.net web api videos
@CodAffection
@CodAffection 5 лет назад
I will try.
@pruebaskarina2060
@pruebaskarina2060 2 года назад
Entiendo lo q esplica, sin saber ingles mucho, gracias por su aporte saludos desde peru
@jitheshkramesh
@jitheshkramesh 5 лет назад
Thank you ...
@hassanmoftah6653
@hassanmoftah6653 4 года назад
Great !
@saadaslam1199
@saadaslam1199 3 года назад
Thank you so much for such a clear explanation. Also, please make a video to Migrate ASP.NET MVC 5 Application with Identity and Existing Data to ASP.NET Core with Identity and Existing Data. Thank you
@mediumr2095
@mediumr2095 4 года назад
Thanks for this video tutorials. It helps a lot in understanding jwt authentication in angular as well as asp.net core web api. Could you please make video on jwt refresh token using asp.net core web api.
@elyinanuar9360
@elyinanuar9360 5 лет назад
Hola buen dia! me parecen muy bonitos tus videos y el tiempo que le dedicas! Como recomendacion deberias hacer un curso completo de un sistemas de ejemplo!!! Hacer un curso asi seria un boom para los que te seguimos! Gracias por tus aportes!!! :3
@CodAffection
@CodAffection 5 лет назад
Seguro, gracias por los comentarios.
@codeRS95
@codeRS95 5 лет назад
Hello sir, can we use Roles with JWT or we have to use Asp.Net Identity for that?
@zarroukiferiel6047
@zarroukiferiel6047 4 года назад
thanks a lot
@eugp3283
@eugp3283 5 лет назад
Great work, thank you! One question. Why you inject SignInManager in ApplicationUserController, but didnt used it?
@imanuelpay5531
@imanuelpay5531 5 лет назад
Very good
@khoufiwissem1086
@khoufiwissem1086 4 года назад
thanks a lot , really a great tutorial !
@CodAffection
@CodAffection 4 года назад
Thanks for watching. let me know if you've any video suggestion related to Asp.Net core / Angular.
@khoufiwissem1086
@khoufiwissem1086 4 года назад
@@CodAffection thanks for your proposition ! yes Bro i think about microservice in Asp.Net core that can be very helpful for us !
@luiscevallos1
@luiscevallos1 4 года назад
Waiting for new videos in your channel please make more for Angular 9 please you are awesome ..please
@ruslanvolodko2690
@ruslanvolodko2690 5 лет назад
Thank you very mutch)))))
@CodAffection
@CodAffection 5 лет назад
you are welcome.
@noedavidchoquerojas
@noedavidchoquerojas 4 года назад
Lo máximo. me ayudó 2 días de chamba
@dkyosk7501
@dkyosk7501 5 лет назад
Great demos! Please extend to role-based authentication with JWT and Api data access using Linq. Thanks,
@CodAffection
@CodAffection 5 лет назад
let me check what I can do.
@papputarun
@papputarun 4 года назад
Hi sir Refresh token is not mentioned in this tutorial, when to create refresh Token
@nguyenvanduoc3929
@nguyenvanduoc3929 5 лет назад
Very good, Can you do a search tutorial video in conjunction with paging and data filtering in angular 7?
@mahesh3thakur
@mahesh3thakur 5 лет назад
thank you sir..and sir can you please add here about refresh token and how can i renew token ?
@777eldhose
@777eldhose 2 года назад
Well explained article... Understood that how to use JWT tokens properly in Angular and WebAPI. Thanks.
@muralimanohar2858
@muralimanohar2858 4 года назад
New subscriber
@khalilsandal8070
@khalilsandal8070 5 лет назад
"we save this, back to the application BOOOM" hhhh
@loden5677
@loden5677 3 года назад
hahaha i love how says BOOM! :D
@carlosvillalobos1814
@carlosvillalobos1814 4 года назад
What if I want to add more tables? Should I create them in the migration folder and then update-database?
@mr.heart007
@mr.heart007 5 лет назад
So good
@CodAffection
@CodAffection 5 лет назад
Glad you found this JWT Authentication tutorial.
@AnshumanDikshit
@AnshumanDikshit 4 года назад
Hi, your tutorials are amazing....saved a lot of time of me . Could you please integrate social authentication along with custom authentication and create a tutorial for that???
@Fasiibcs
@Fasiibcs 5 лет назад
Can you please make a tutorial like using ASP. NET core identity scaffold login and any other form with angular 7.
@hassanangular7180
@hassanangular7180 5 лет назад
Hi, I have a question. My website is ASP .Net core with Angular 5 when it loads a page loading is very huge. How Can I loading with Event Scrolling?
@Pablofb1014
@Pablofb1014 4 года назад
Primeiramente muito obrigado por todo conhecimento nos passado. Poderia fazer um tutorial sobre criar relatórios com Asp.Net Core + Angular, seria top demais. Forte abraço diretamente do Brasil :D
@fernandopassaia
@fernandopassaia 4 года назад
rapaz, o cara faz o vídeo todo em inglês indiano, e você responde em PT-BR... não entendeu nada... kk
@Pablofb1014
@Pablofb1014 4 года назад
@@fernandopassaia Errado. Pois ele já me respondeu outras vezes.
@sulaimanahmedz5826
@sulaimanahmedz5826 5 лет назад
What is the suspense of the upcoming video cant wait for it, please make it fast.
@CodAffection
@CodAffection 5 лет назад
I was busy. will be uploaded within one week.
@lancelot4043
@lancelot4043 5 лет назад
Hey codaffection.. i really like yours apps and i try to learn at the same Time.. i have a doubt i hope u can help me . Is ir possible to add more tablet to the database.. and if the anwser is yes how
@billjustice9476
@billjustice9476 4 года назад
I have gone through 6 or 7 of your video tutorials and enjoyed them very much. I am stuck at the end of this one, though. I am trying to use what I built following this tutorial as the base of an application, but I can't seem to make the jump from being authenticated to accessing and displaying data in tables. Could you please make a Part 3 here, essentially adding the Master/Detail tutorial functionality you did for the restaurant app to this one? I would particularly benefit from the initial list being built from a query with at least one criterion. It would really get me over the hump, and I assume others would appreciate it as well. Thank You!!
@CodAffection
@CodAffection 4 года назад
Hi Bill. Thanks for the comment. You made a point. Next time I would like to extend this series like registration -> authentication -> .... up to project deployment.
@billjustice9476
@billjustice9476 4 года назад
that would be great, Shamseer. looking forward to seeing what you come up with!
@gauravjoshi5054
@gauravjoshi5054 3 года назад
Awesome session. thanks a lot man! Can anyone tell me what are the best approaches to store JWT apart from Local storage or session or cookie. In real word application we can't store Token like this. Any help much appreciate.
@somadyessoufou9147
@somadyessoufou9147 4 года назад
Hi CodAffection, can you please do one using Angular 7+ and Asp.net Core 2+ with Identity Server 4
@sundards9613
@sundards9613 4 года назад
Thank you so much for this tutorial Sir can you please make forgot password functionality for this one it's helped me lot once again thanks sir. 👍
@faizfaiz2336
@faizfaiz2336 5 лет назад
Thanks sir its very help full, Pls add some more functionality in this tutorial like authorized user can add, edit and delete post and non authorized user can only see post and like post
@CodAffection
@CodAffection 5 лет назад
let me check what I can do.
@zainasghar9127
@zainasghar9127 Год назад
Do you have a video for Oauth?
@vipindixit4194
@vipindixit4194 4 года назад
Hello sir, The project we created i am not able to retrieve logged in user info (request to get userProfile is failing) from post man i am getting user info but when i am trying to get userinfo from application it is failing. string userId = User.Claims.First(c => c.Type == "UserID").Value; in userinfo controller failing at this step.
@vinitasinha6183
@vinitasinha6183 4 года назад
Thanks a lot for jwt authentication and CRUD Operations video , could you please make a video on Pagination with Asp.net Core API and Angular 7/8.
@CodAffection
@CodAffection 4 года назад
Pagination on server side only, with any npm packages in anguar ?
@VIjayKumartheh2o
@VIjayKumartheh2o 4 года назад
Can anyone give me how to generate breadcrumbs for this structure.
@joshiadvait8
@joshiadvait8 5 лет назад
Can you make video for c#.net fulfillment with Dialogflow to create bot?
@zalalmustapha4796
@zalalmustapha4796 5 лет назад
i like your tutorial, please i want to know how to add button Forget Password
@akshaykwatra393
@akshaykwatra393 4 года назад
does it use C# for the backend??
@faizfaiz2336
@faizfaiz2336 5 лет назад
Hello sir, i want use interceptor with some request not every request. Plz explain it.
@pankajsaxena7902
@pankajsaxena7902 5 лет назад
Suparb video. I'm very thankful if you create a video series of angularjs + asp.net mvc 4 or 5 or web api
@CodAffection
@CodAffection 5 лет назад
Glad you found this video helpful. we have not yet started angularjs tutorial.
@pankajsaxena7902
@pankajsaxena7902 5 лет назад
@@CodAffection so please create a series regarding angularjs with asp.net mvc
@pankajsaxena7902
@pankajsaxena7902 5 лет назад
@@CodAffection so please create a series regarding angularjs with asp.net mvc
@johnbae77
@johnbae77 4 года назад
Any chance you can update the login post request to send the username and password in the header not in the body? This would impact both webapi and user service code.
@MohammadGhanem-ps
@MohammadGhanem-ps 4 года назад
Hi, Thank you very much for the great tutorial, I have question : Do you think saving jwt in local storage is secure, I'm using https.
@CodAffection
@CodAffection 4 года назад
yes, it is safe to do so. Because of its encryption and integrity check.
@afshaanfirdouse3300
@afshaanfirdouse3300 5 лет назад
Hi sir the video is awesome got a lotbof helpnout of it. Thank you soooo much.❤❤❤ Could you please make a video to implement a real-time chatt application using "SignalR" class of ASP.NET CORE. Please sir make a video about it.
@CodAffection
@CodAffection 5 лет назад
thanks for the feedback, I'll try your suggestion.
@sulaimanahmedz5826
@sulaimanahmedz5826 5 лет назад
I am getting the error of earning at the AuthInterceptor class. It is telling that i should enable the experimental decorator in my configuration file.
@callegarip
@callegarip 3 года назад
Where is the logout in the backend? What if I save or hold the token before you remove it from the local storage. How can I logout also from the server?
@maheshyu6817
@maheshyu6817 4 года назад
My user profile is returning me an object in postman,but on angular I think I couldn't be able to pass the token along with the URL
@mrinvisible9078
@mrinvisible9078 4 года назад
Hello. How to connect the website with the mobile app ?
@drakZes
@drakZes 3 года назад
Did he actually declare the imports for NgForm and Router class, because he didn;t do it when going through the code and I am having difficulties doing it myself. Must not be doing ot correctly
@TapanDubey
@TapanDubey 4 года назад
Nice video, thank you for sharing #TapanDubey
@AtiwatSakulwong
@AtiwatSakulwong 4 года назад
Hello CodAffection , thank you for sharing ,can you please demo angular login with azure AD? Thank you.
@marklaude3035
@marklaude3035 4 года назад
this is an SSO. its great btw.
@nasirahmed4618
@nasirahmed4618 5 лет назад
Nice video. Could you please make a video of Angular with redux.
@CodAffection
@CodAffection 5 лет назад
will try later.
@jorgeberroa9874
@jorgeberroa9874 5 лет назад
is there any way you can provide some resources for jwt .net core middleware? No matter the amount of google searches I cant find the documentation on how to implement JWT on .net core
@Skia_
@Skia_ 5 лет назад
Great tutorial mate! What's your next plan? When are you going to implement a fully fledged series that revolves around an e-commerce web app with a register/login system in .Net/Angular?
@CodAffection
@CodAffection 5 лет назад
glad to hear that, e-commerce app is already there in my pending list, but i need some more preparation for the topic. let me know your requirements for the app.
@Skia_
@Skia_ 5 лет назад
@@CodAffection typical login/logout, shopping list, shopping item details, add to cart, checkout and probably stripes payment integration
@codeRS95
@codeRS95 5 лет назад
@@CodAffection Role wise authorization.
@EliasNPC
@EliasNPC 3 года назад
Is it possible to make this a desktop application?
@Sunny-qe5el
@Sunny-qe5el 4 года назад
What if someone copied userId and password and then try to login. In that case how effective JWT is?
@amareshsahoo320
@amareshsahoo320 5 лет назад
Hello Sir, Thanks for this awesome video.One request please make video on refresh token in angular and .net core
@CodAffection
@CodAffection 5 лет назад
thanks for the comment. may be next time.
@amareshsahoo320
@amareshsahoo320 5 лет назад
@@CodAffection Thank You so much sir.We all waiting for this video.Make make it as soon as possible. Once again thank you sir
Далее
Stay Fresh: .NET 7 Web API Refresh Tokens 🌊
18:25
Просмотров 18 тыс.
Лайфхак для дачников
00:13
Просмотров 17 тыс.
Secure a .NET Core API with Bearer Authentication
1:06:56
Angular Material Tutorial in One Video
2:12:21
Просмотров 43 тыс.
Cool Tech You’ll LOVE!
21:41
Просмотров 78 тыс.
Лайфхак для дачников
00:13
Просмотров 17 тыс.