Тёмный
No video :(

ASP.NET Core 5.0 - Authentication/Authorization - .Net Engineering Forum 2021-01-26 

Tony Spencer
Подписаться 3,7 тыс.
Просмотров 135 тыс.
50% 1

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

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 312   
@mobiletonster
@mobiletonster 2 года назад
Be sure to watch Part 2 and 3. If you have questions or need more help, contact me at mobiletonster@gmail.com
@durimmiziraj4815
@durimmiziraj4815 2 года назад
It would be really helpful if you would upload your code and link it in the description.
@mobiletonster
@mobiletonster 2 года назад
@@durimmiziraj4815 if you check the description, I have put a link to the GitHub Repository for the final integration of the 3 parts. github://mobiletonster.com/Authn
@EnduroNerd
@EnduroNerd 2 года назад
Crisp and clear descriptions of how to do custom auth. Most articles will just thrust entity framework with identity schemes in your face, but this really shows the basic fundamentals and how to do them from the ground up. Fantastic tutorial.
@mobiletonster
@mobiletonster 2 года назад
Thanks!
@lexdxw1989
@lexdxw1989 Год назад
Good. This maybe the most clearest explanation for ASP.NET Core.
@mobiletonster
@mobiletonster Год назад
Thanks. I hope it helps someone.
@Gonkers44
@Gonkers44 3 года назад
Perfect balance of explanation of beginner to advanced topics and not sounding condescending. Not many can pull that off. Great job.
@mobiletonster
@mobiletonster 3 года назад
Thank you for your kind words. This has been a lot of work to put together and I hope it will help someone. I know it is a complex topic because I had to fight through it myself and I promised that if I ever figured it out I would try to give back to the community who helped me. I just posted Part 2 in the series, so enjoy.
@yehia3amer
@yehia3amer 3 года назад
That was a really good Tutorial. I really like how you explain things (even trying and doing it wrong to know what went wrong). Thanks a lot, waiting for more about this topic.
@mobiletonster
@mobiletonster 3 года назад
Doing it wrong is the part that comes naturally for me...lol. I just posted Part 2.
@zioncitizen2030
@zioncitizen2030 2 года назад
Best video I've ever seen about Authentication and Authorization. Short, unerstandable with brilliant examples. Thanks
@mobiletonster
@mobiletonster Год назад
Wow, thanks! That is quite a nice compliment.
@franciscogilt
@franciscogilt 2 года назад
The best explanation I have seen so far about this topic. Thank you.
@mobiletonster
@mobiletonster 2 года назад
Wow, thank you!
@simonshen9711
@simonshen9711 2 года назад
You are a good teacher! In fact, I don’t know much about ASP.NET, but when I finished watching this video, I knew the difference between authentication and authorization, and understood how they work in ASP.NET!
@mobiletonster
@mobiletonster 2 года назад
Hopefully you found it worth your time. I hope you make amazing things!
@ToastyB9
@ToastyB9 Год назад
Tony, I am 45 minutes into your first video. Everything works. I am so grateful for your thorough explanations about this complex topic. I have worked with JWT's and now I decided I want to use cookies. I just want control and don't want to use MSFT Identity so understanding this completely is very important to me. You are the best resource I have found so far. Thank you!
@mobiletonster
@mobiletonster Год назад
Great to hear!
@karthikreddy3537
@karthikreddy3537 3 года назад
i watched over 20 videos regarding Authorization/Authentication,Not even one video i didn't clarity after seeing your video i got clarity what is this Concept about thank you so much,
@mobiletonster
@mobiletonster 3 года назад
Thank you for the nice comment. Let me know where you are from and what other topics you would be interested in.
@karthikreddy3537
@karthikreddy3537 3 года назад
@@mobiletonster hi tony this is karthik from India ,Hyderabad ,I'm in interested in knowing about JWT
@sarahtsoh862
@sarahtsoh862 2 года назад
this is the best explanation I have seen so far on .Netcore Security
@mobiletonster
@mobiletonster 2 года назад
That is a very nice compliment. Be sure to watch parts 2 and 3.
@TheNorthRemember
@TheNorthRemember 3 года назад
the great thing is he show us auth process without adding an identity package and its DB context, thanks Tony
@mobiletonster
@mobiletonster 3 года назад
Indeed. While the Identity Package can be useful, over the years I have found that I prefer to either use and Identity Provider (Google, Microsoft, Facebook, Twitter, etc.) or if I must have my own identity system, to use my own so I can easily modify the claims/properties that I want to capture for my users.
@saurabhd13
@saurabhd13 2 года назад
Only after watching your videos , I understood Authentication/Authorization. Thank you very much.
@mobiletonster
@mobiletonster 2 года назад
Glad to hear that
@OEMPlus
@OEMPlus 2 года назад
im architecting a new system from scratch using .net5 and mvc. This was incredibly helpful. thank you so much.
@mobiletonster
@mobiletonster Год назад
Glad it was helpful!
@Krejstrup
@Krejstrup 2 года назад
Loved the pace of this video, and the simplicity of the explanations. Super! Thank you, I'll watch the other ones when I get the time.
@mobiletonster
@mobiletonster 2 года назад
Thanks for the compliment. I hope you find it useful.
@sylviogiraldes
@sylviogiraldes 3 года назад
Hi Tony. Congratulations on your job. I am quite sure this is the best I´ve ever seen about this subject. Looks like you have a natural gift for being a teacher.
@mobiletonster
@mobiletonster 3 года назад
Wow, thanks! I appreciate the compliment.
@vaibhavachanty3659
@vaibhavachanty3659 2 года назад
Simply amazing. Saw many days for clear explanation. Nowhere i found right one. Finally got the best one. Thanks man 😍
@mobiletonster
@mobiletonster Год назад
Great to hear!
@lakshanracing
@lakshanracing 2 года назад
That was amercing, Your are my god. i search this operation 6 day, finally I got your explanation. Thank you again Sir.
@mobiletonster
@mobiletonster 2 года назад
Thank You? I'm not familiar with "amercing", but thanks for the compliment? lol. I'm glad it helped. Be sure to watch parts 2 and 3.
@rodrigo6459
@rodrigo6459 3 года назад
YEARS Looking for THIS level of information!! PERFECTION!!
@mobiletonster
@mobiletonster 3 года назад
So glad!
@paulharrington9673
@paulharrington9673 3 года назад
Best explanation of this process I have come across. Just enough detail IMHO.
@mobiletonster
@mobiletonster 3 года назад
I'm glad it helped. I hope to do a number of other topics in the future.
@anilgautam1670
@anilgautam1670 Год назад
You are a hidden Gem Mr. Tony. Your knowledge is truly amazing. Salute to you Sir. This video is really helpful.
@mobiletonster
@mobiletonster Год назад
Glad it was helpful!
@0oShaydo
@0oShaydo 2 года назад
Amazing explanation, pace was spot on, it made perfect sense. I also feel like having watched it I can jump in where I need to as a refresh as I now build it. Thank you 😀
@mobiletonster
@mobiletonster 2 года назад
Great to hear!
@TrungNguyen-ld7hz
@TrungNguyen-ld7hz 3 года назад
Truly amazing, you're such a gifted teacher.
@mobiletonster
@mobiletonster 3 года назад
Thank you! 😊
@JackLee-zd1vt
@JackLee-zd1vt 2 года назад
By far the best tutorials on this topic, must watch if you are building enterprise ready software. Thanks Tony
@mobiletonster
@mobiletonster Год назад
Thanks Jack! Very nice compliment.
@shehan6857
@shehan6857 3 года назад
Got clear idea about cookie based authentication. waiting for OpenID as well. Thank you so much. Keep up the good work.
@mobiletonster
@mobiletonster 3 года назад
I'm glad it helped. I have more videos on the way, but I just posted Part 2 which begins our journey into OpenIdConnect.
@shehan6857
@shehan6857 3 года назад
@@mobiletonster thank you for your commitment.
@undauntedspirit1
@undauntedspirit1 3 года назад
Thank you so much, can't wait for the jwt, openid stuff.
@mobiletonster
@mobiletonster 3 года назад
I'm working on it right now....OpenID Connect will be the main focus of Part 2.
@nickeax
@nickeax 2 года назад
Thanks for this great sharing of knowledge and process. So often with frameworks it seems the only way to learn is to blindly follow convention, but you show us how to play around with this beast and gain a deeper understanding of what we're actually doing.
@mobiletonster
@mobiletonster 2 года назад
Glad it was helpful!
@sbk1398
@sbk1398 3 года назад
Thank you for making .NET's convolution much easier to understand
@mobiletonster
@mobiletonster 3 года назад
You are most welcome. .NET is very powerful if you can understand its "convolution" sometimes...lol.
@JohnWaclawski
@JohnWaclawski 2 года назад
I'm only about 1/2 of the way through your video and this is great stuff!! You hit the nail on the had for what I was looking for in a tutorial. I plan on watching your other videos as well. Thank you very, VERY much!!! Well done!!!
@mobiletonster
@mobiletonster 2 года назад
Awesome! Thank you!
@pyrysaarinen4954
@pyrysaarinen4954 3 года назад
Brilliant usage of those clips to demonstrate difference between Authentication and Authorization
@mobiletonster
@mobiletonster 3 года назад
Thanks. I hope you found the video useful.
@ve2tax
@ve2tax 2 года назад
Very good tutorial for me... Everything I saw so far was using the Entity Framework so it gives me an inspiration to do it without EF.. Now need to understand more how to do the same with oAuth and OpenId connect for both a UI and API... Will go watch your other videos... Thanks man again for the video. Well done!
@mobiletonster
@mobiletonster 2 года назад
Great to hear!
@ricardorocha5118
@ricardorocha5118 3 года назад
You really deserve more subs, I loved your way to teach, so clear!
@mobiletonster
@mobiletonster 3 года назад
Glad you think so! I hope to get back to making more in this series as soon as I get through a major project that I'm building at work.
@MarcusHammarberg
@MarcusHammarberg 2 года назад
Brilliant teaching here! A lot of tricky concepts that you describe in a very calm and understandable step-by-step fashion. Thank Tony
@mobiletonster
@mobiletonster 2 года назад
Thanks for the compliment. Very kind of you.
@elhamsouri8862
@elhamsouri8862 3 года назад
Wow, that's one of the best tutorials I've ever seen! Thanks a lot.
@mobiletonster
@mobiletonster 3 года назад
Wow, thanks!
@TheBest-sd2qf
@TheBest-sd2qf 3 года назад
Damn that's one of the best tutorials I've ever seen!
@mobiletonster
@mobiletonster 3 года назад
Thanks. That is a very kind compliment.
@00wiking
@00wiking 2 года назад
Thank you. I love it. Nice and simple explained without any unneeded content. Best regards :)
@mobiletonster
@mobiletonster 2 года назад
Thanks. I'm glad it was helpful.
@ismailjama7440
@ismailjama7440 Год назад
Big thanks sir, really helpful and easy to follow, best Authentication/AuthorizationMVC view I watched
@mobiletonster
@mobiletonster Год назад
Glad it was helpful!
@Camille-jm2oe
@Camille-jm2oe 3 года назад
Thank you for this wonderful job of teaching us of authentication work on asp net. I never found ressources like this on this specific aspect of Asp Net Core. Please keep going !
@mobiletonster
@mobiletonster 3 года назад
You're very welcome!
@francoislevy441
@francoislevy441 2 года назад
Authorization made simple. Great job !
@mobiletonster
@mobiletonster 2 года назад
Thank you!
@srini7690
@srini7690 2 года назад
The 3-part series answered most of my doubts! Thank you very much 😊
@mobiletonster
@mobiletonster 2 года назад
Glad it was helpful!
@marmarrosie6202
@marmarrosie6202 3 года назад
You just saved my school project, thank you so much !
@mobiletonster
@mobiletonster 3 года назад
Great! If you ever need help with your school projects, just reach out. You can DM me on twitter @mobiletonster.
@clashmasters3270
@clashmasters3270 3 года назад
Very useful, crisp explanations. Keep posting more content on core mvc.
@mobiletonster
@mobiletonster 3 года назад
Thank you, I will
@attilaguba856
@attilaguba856 2 года назад
I'm really happy I've found your channel! It's super understandable and clear explanation! Thanks!
@mobiletonster
@mobiletonster 2 года назад
I'm glad you found it helpful. I just remember struggling through things like Authentication and wished there was a way to break it down into simpler concepts, so when I finally figured out some things, I decided to share it with others. It was hard work to put it together (and scary to be on camera to be honest) but now that I see how many people have benefited from it, it makes it worthwhile.
@attilaguba856
@attilaguba856 2 года назад
@@mobiletonster don't worry about the camera you did really well! I like as the way you explained literally step by step! If you consider to make a fully udemy course I'd buy it without hesitation! I really wanted to know how you can make a fully login with registration , forgot and reset password, role based, and even third part login like Facebook or Gmail etc! And what I haven't still found how you can deploy and publish Register and Login pages to an existing website with databases! Only I can find is local host! Aren't you doing private lessons?
@mobiletonster
@mobiletonster 2 года назад
@@attilaguba856 I wouldn’t call it private lessons but I’m always willing to discuss with people…you can email me at mobiletonster at gmail dot com.
@attilaguba856
@attilaguba856 2 года назад
@@mobiletonster thanks very much! I will email you !
@ChosenHandle
@ChosenHandle 3 года назад
This video is excellent - very clear and concise. Thanks for taking the time to make it!
@mobiletonster
@mobiletonster 3 года назад
Glad it was helpful!
@matthewjury6327
@matthewjury6327 3 года назад
Marvelous tutorial. Great job.
@mobiletonster
@mobiletonster 3 года назад
Many thanks!
@arico94
@arico94 3 года назад
Awesome explanation. One thing I have always had a hard time wrapping my head around is Authorization and Authentication. ps. Ogden is beautiful, had the pleasure of attending Weber State there!
@mobiletonster
@mobiletonster 3 года назад
I too attended Weber State University and fell in love with the Ogden Valley after growing up in Washington State. I have been here ever since!
@Kuller95
@Kuller95 3 года назад
U are the best! Better instructor than those on udemy. Your video saved me at work :)
@mobiletonster
@mobiletonster 3 года назад
Wow, thanks! Glad to hear that it helped at work. Don't forget to watch parts 2 and 3.
@raagediriye9229
@raagediriye9229 2 года назад
Best teacher i ever had. I hope you make more videos.
@mobiletonster
@mobiletonster 2 года назад
That is quite a compliment. Thank you!
@engineererick
@engineererick 3 года назад
Just what I was looking for my company project. Thanks a lot!!
@mobiletonster
@mobiletonster 3 года назад
You're very welcome!
@cyrilmathew4958
@cyrilmathew4958 2 года назад
Good Explanation, thanks Tony Spencer
@mobiletonster
@mobiletonster 2 года назад
Glad it was helpful!
@indylawi5021
@indylawi5021 2 года назад
great coverage of cookie authen.
@mobiletonster
@mobiletonster 2 года назад
Thanks!
@renukashiramka9812
@renukashiramka9812 2 года назад
superb...in a easy way you explain such a complicate topic..
@mobiletonster
@mobiletonster 2 года назад
Glad you liked it
@sudambandara
@sudambandara 3 года назад
Very well explained! Learnt a lot in this 1-hour session. Thanks heaps
@mobiletonster
@mobiletonster 3 года назад
Great to hear!
@vikasgowxda
@vikasgowxda Год назад
Take a drink every ti he says “to stay super organized “
@mobiletonster
@mobiletonster Год назад
And if you do so, you will likely die of thirst.
@burakgunn
@burakgunn Год назад
Dear Tony, thank you. Helped me a lot.
@mobiletonster
@mobiletonster Год назад
Glad it helped
@mr.kaleem3328
@mr.kaleem3328 Год назад
Clappp for you sir Happy understanding 😊
@sebastianamann7131
@sebastianamann7131 2 года назад
Thank you for this!!!!! Exactly what I have been looking for.
@mobiletonster
@mobiletonster 2 года назад
Glad to hear! Don’t forget to watch part 2 and 3 for more information.
@juraci73
@juraci73 3 года назад
Obrigado Tony pela sua generosidade em compartilhar conosco o seu conhecimento!
@Uzair_Anwar2299
@Uzair_Anwar2299 2 года назад
Really nice tutorial. Love form Pakistan
@mobiletonster
@mobiletonster Год назад
Glad it was helpful.
@christianvindbk5623
@christianvindbk5623 3 года назад
This is just what i needed for my project, thanks a lot
@mobiletonster
@mobiletonster 3 года назад
Great! I'm glad it helped. There is also part 2 and 3 which dive into OpenId/OAuth implementation and connecting a database to house roles, etc. Enjoy!
@ashutoshsingh5568
@ashutoshsingh5568 3 года назад
Pls zoom a little bit show that viewers can see the content properly. Besides that the content is really good and helpful. Thanks
@mobiletonster
@mobiletonster 3 года назад
Thanks for your comment. Can you tell me the resolution of the computer you are watching on so I can gauge how large to make the content? It is always tricky to balance as some people are on large 4K monitors and others are on smaller monitors. Hopefully no one is trying to watch code on a mobile device, like a phone. That would be very difficult.
@ashutoshsingh5568
@ashutoshsingh5568 3 года назад
@@mobiletonster oh my bad. I was using mobile. Actually I came across your channel last night when I was searching filters in MVC. I would try your tutorials on my laptop screen. Have a great day Mr. Tony.
@XpLoeRe
@XpLoeRe 3 года назад
Thank you. making everything so clear and simple..bless you!
@mobiletonster
@mobiletonster 3 года назад
You are so welcome! Also, thank you for the blessings!
@garratygarret8559
@garratygarret8559 3 года назад
Wow, was für ein cooles Video. Vielen Dank dafür!
@mobiletonster
@mobiletonster 3 года назад
Danka!
@jinnybat
@jinnybat 2 года назад
This is amazing stuff I have never seen a video like this with so much detail starting from scratch thank you, could you please create content where we have different types of authentication like you covered cookies apart from this like JWT and few others.
@mobiletonster
@mobiletonster 2 года назад
Thanks for the comment. I have plans to do more videos on other types of authentication...just haven't had the time yet.
@ramanprajapati5266
@ramanprajapati5266 3 года назад
Good video to understand concepts of Authentication and Authorization
@mobiletonster
@mobiletonster 3 года назад
Appreciate your comments
@1KiLeR11
@1KiLeR11 3 года назад
Thanks for this video, you helped me a lot
@mobiletonster
@mobiletonster 3 года назад
I am glad these have helped you and others. I am working on more tutorials as I get free time to work on them. Thanks for watching!
@rajaganji7982
@rajaganji7982 2 года назад
This is excellent Tutorial. Excellent.
@mobiletonster
@mobiletonster 2 года назад
Glad you think so!
@jchinin
@jchinin 3 года назад
Muchas gracias!. Me sirvió de mucho.
@gelordtube
@gelordtube 2 года назад
Wow! great explanation, but you'd have explained how to do the assignment of the claims in another Class trying to do the separation of concerns; and Using A database for the usr and pass... event the roles
@mobiletonster
@mobiletonster 2 года назад
Thanks. Be sure to watch parts 2 & 3 of this video series. I think it might address your other concerns.
@guzhouchui936
@guzhouchui936 2 года назад
非常棒的视频,我很喜欢,对我帮助很大,谢谢👍
@mobiletonster
@mobiletonster Год назад
Not sure what that means, but ok.
@huseyincumal5259
@huseyincumal5259 2 года назад
Thank you so much sir, thank you from turkey.
@mobiletonster
@mobiletonster 2 года назад
You are welcome! Good to hear from Turkey!
@FarazAzhar
@FarazAzhar 2 года назад
Very nicely done Tony. That was just the intro into ASP.NET that I was looking for. Just a quick question; how would you implement a "Remember Me" option in the Login screen?
@mobiletonster
@mobiletonster 2 года назад
If the user selected the checkbox, I would store their username in a cookie. Then when they returned, I would check for the presence of that cookie and extract the information from it (using javascript) and inject it into the input field for username. I would still require the user to enter a password.
@FarazAzhar
@FarazAzhar 2 года назад
@@mobiletonster thanks
@muhammadraza5108
@muhammadraza5108 2 года назад
Thumps-UP Explanation and Way. I wish If I have complete course on Dot Net Core from scratch to Expert Thanks Sir.
@mobiletonster
@mobiletonster 2 года назад
Thanks for the feedback. I would actually like to put together a series of videos from basic to advanced. Expert? I don't consider myself an expert, so not sure I can do that part.
@techno7761
@techno7761 2 года назад
Fantastic tutorial. Thank you
@mobiletonster
@mobiletonster 2 года назад
Glad it was helpful!
@caleb5688
@caleb5688 3 года назад
Well made, I only wish I could find something of similar quality on Policy-Based Authorization!
@mobiletonster
@mobiletonster 3 года назад
That is a good suggestion. Maybe in a follow up video I can demonstrate some basic Policy-Base Authorization.
@carlosreis9775
@carlosreis9775 2 года назад
Very well explained, thank you
@mobiletonster
@mobiletonster 2 года назад
Glad it was helpful!
@4FrogsStacked
@4FrogsStacked 3 года назад
This helped me so much, great video!
@mobiletonster
@mobiletonster 3 года назад
Glad it helped!
@farisarx5552
@farisarx5552 3 года назад
Thank you so much , you are a great teacher hope you do more tutorials about asp.net
@mobiletonster
@mobiletonster 3 года назад
Thank you, I plan to. I have been on a major project at work that has prevented me from getting my next planned video completed. Hopefully I will be able to get back to it soon.
@kruhyze
@kruhyze 3 года назад
Thank you I needed this for my project
@mobiletonster
@mobiletonster 3 года назад
I hope it was helpful. Be sure to watch parts 2 and 3 as well. There is some good information in those other 2 parts that you may find helpful as well.
@timeforrice
@timeforrice 2 года назад
Amazing tutorial!!
@mobiletonster
@mobiletonster 2 года назад
Thank you!
@liualex32
@liualex32 3 года назад
Great Teacher! Thanks for your wisdom!
@mobiletonster
@mobiletonster 3 года назад
Glad it was helpful!
@shenlong0
@shenlong0 3 года назад
Thank You Tony this is a great video!
@mobiletonster
@mobiletonster 3 года назад
You are very welcome. Hope it was helpful.
@superknife0512
@superknife0512 3 года назад
awesome tutorial so far
@mobiletonster
@mobiletonster 3 года назад
Glad to hear that! Be sure to watch parts 2 and 3. There is important information in them.
@Arestkaramazov
@Arestkaramazov 2 года назад
Thanks so much for this! you're awesome!
@mobiletonster
@mobiletonster 2 года назад
You're so welcome!
@youssefali500
@youssefali500 2 года назад
Really nice thanks for your effort
@mobiletonster
@mobiletonster 2 года назад
It's my pleasure
@Aayush_Doshi
@Aayush_Doshi 2 года назад
Thanks for the Video it Helped me alot
@mobiletonster
@mobiletonster 2 года назад
You are welcome!
@mikolajsemeniuk8574
@mikolajsemeniuk8574 3 года назад
Great video!
@mobiletonster
@mobiletonster 3 года назад
Glad you enjoyed it
@kienphan6436
@kienphan6436 2 года назад
Thank you sir
@mobiletonster
@mobiletonster 2 года назад
All the best
@NathanWeinrich
@NathanWeinrich 3 года назад
Awesome tutorial! Curious, when you "hardcode" the Admin claim in the OnSigningIn event, is this an ok place to get that "admin" flag from a database? or could it get passed from my username/password lookup in the login action?
@mobiletonster
@mobiletonster 3 года назад
Yes. In parts 2 and 3 we build up to using a database to get that information and demonstrate using Identity as a service providers like AzureAD or Okta, etc.
@sathishrajaraja8177
@sathishrajaraja8177 2 года назад
Great ! Thank you.
@mobiletonster
@mobiletonster 2 года назад
Thank you too!
@Zainjerr
@Zainjerr 3 года назад
Supreme!
@mobiletonster
@mobiletonster 3 года назад
Thank you. You are very kind.
@vladpronin1526
@vladpronin1526 3 года назад
Thanks, you're great
@mobiletonster
@mobiletonster 2 года назад
Thank you!
@JhosefAndersonCardichPalma
@JhosefAndersonCardichPalma 2 года назад
Wonderfull, thank you very much for the tutorial
@mobiletonster
@mobiletonster 2 года назад
You're welcome 😊. Be sure to check out parts 2 and 3.
@abdullahsalemws
@abdullahsalemws 3 года назад
Great! Thanks!
@mobiletonster
@mobiletonster 3 года назад
You're welcome!
@hongkyuchung5769
@hongkyuchung5769 2 года назад
Thanks.! It was great~~
@mobiletonster
@mobiletonster 2 года назад
Glad you liked it!
@Unity-BR
@Unity-BR 3 года назад
Very Tanks Man!!!
@mobiletonster
@mobiletonster 3 года назад
You are welc. Tanks to you too!
@WhiteLotusZuko
@WhiteLotusZuko 3 года назад
thank u, u helped me a lot
@mobiletonster
@mobiletonster 3 года назад
Glad I could help!
@orxanmemmedeli4711
@orxanmemmedeli4711 3 года назад
Brilliant job. thank you
@mobiletonster
@mobiletonster 3 года назад
Glad you liked it!
@cprashanthreddy
@cprashanthreddy 3 года назад
Good Explanation...👍
@mobiletonster
@mobiletonster 3 года назад
Thank you 😃
@moneyfresher3035
@moneyfresher3035 3 года назад
Hi Tony, Excellent. Now cookie authentication is clear to me. You have great teaching and presentation skills. I have a question for you. Like cookie authentication, do we have session based authentication in core? I have seen various example of storing the data in session and retrieving back but nowhere found for authentication and authorisation purpose. Does it exists or just used to store the data for state management?
@mobiletonster
@mobiletonster 3 года назад
Are you referring to session on the server or in the browser. You can store session in either place, but in today’s cloud world with dynamic scaling, server side session storage isn’t as flexible as it forces a user to alway be connected to a specific server or you must synchronize session across multiple servers. Cookie based authentication scales much better as it isn’t tied to a specific server instance. As for storing something like a token in browser session storage, this is a common pattern however it requires more work from the developer to alway include the token in the header of each request to the server whereas the cookie rides for free on each request (on fetch requests make sure to use “includecredentials” option for cookies)
@moneyfresher3035
@moneyfresher3035 3 года назад
@@mobiletonster Thanks for your reply. I was talking about server side session. ultimately session uses cookie to store data in the browser but it is safe when using in memory session. Other than cookie authentication, What other option we have for authentication in MVC ? Because for safety purpose, cookie based authentication assumes to be a bad choice.
@mobiletonster
@mobiletonster 3 года назад
Cookies, when used correctly, are a safe option. The key is to 1. use https, 2. make sure the cookie is bound to a specific domain 3. set it to httponly so it can't be read on the client side in javascript 4. control the security level to be strict or same site, not lax. Using these and other techniques such as CSRF tokens to prevent cross site scripting attacks will further improve the security of your site while using cookies. Alternatives to using cookies include using JWT tokens added to the Authorization header, but they are really not any safer thank a cookie. Like a cookie, the JWT token is passed in the header, but the JWT token is usually readable by the client side, whereas a cookie can be encrypted so that it is not readable by the client side or browser (httponly). If you need store JWT tokens in the browser, don't store them in localstorage (which is a common practice, but not a good idea). Store tokens in sessionstorage or in memory (like in a react state object, or Angular state object) or .... in a cookie (lol).
@moneyfresher3035
@moneyfresher3035 3 года назад
@@mobiletonster Thanks Tony. it helped a lot.
Далее
Turns out REST APIs weren't the answer (and that's OK!)
10:38
🔥НОВАЯ БАТАРЕЯ?😮
00:40
Просмотров 288 тыс.
СЛАДКОЕЖКИ ПОЙМУТ😁@andrey.grechka
00:11
The Logging Everyone Should Be Using in .NET
15:34
Просмотров 59 тыс.
Brutally honest advice for new .NET Web Developers
7:19
Introduction to ASP.NET Core MVC in C# plus LOTS of Tips
1:03:56
Secure a .NET Core API with Bearer Authentication
1:06:56
ASP.NET Core Authorization  (.NET 7 Minimal Apis C#)
21:31
How He Got $600,000 Data Engineer Job
19:08
Просмотров 24 тыс.
🔥НОВАЯ БАТАРЕЯ?😮
00:40
Просмотров 288 тыс.