Authentication on the Web (Sessions, Cookies, JWT, localStorage, and more)

  Переглядів 479,964

Code Realm

Code Realm

День тому

In this video, we will cover the fundamentals of user authentication in modern web applications and websites. In particular, we will explore stateful (session-based) and stateless (token-based) auth, and examine cookies, JWT, and client storage in close detail. We will also touch on security aspects inherent with each authentication scheme and lay out practical strategies for implementing authentication in single-page apps and RESTful APIs.
This episode is also a companion for the MERN stack series where we build a GraphQL API server with a React front-end • MERN Stack & GraphQL -... You will find however that the general principles in this presentation apply to many programming languages (Ruby, Python, PHP, JS) and frameworks (Rails, Django, Laravel, Express) on the web.
My intention with this presentation is to give you a bird's eye view of the popular authentication schemes, and lay the theoretical groundwork for the upcoming implementation tutorials with Node.js. Hopefully, this video will clear up some of the common questions or uncertainties revolving around user auth. Let me know down below if you found it useful. I'll see you devs soon.
Markdown presentation with resources and links on GitHub github.com/alex996/presentations

КОМЕНТАРІ: 361
@agustinbs
@agustinbs 5 років тому
Best video on web auth that has ever been produce by the mankind. Period.
@BlokeBritish
@BlokeBritish 3 роки тому
produced by mankind but seems more like a machine just reading some text
@benedictsincere7366
@benedictsincere7366 2 роки тому
i guess im asking randomly but does someone know of a trick to get back into an Instagram account..? I was dumb forgot my password. I love any tips you can give me.
@JoonhwanLee
@JoonhwanLee 2 роки тому
2 years after, still best I think
@hellelo.5840
@hellelo.5840 2 роки тому
@@BlokeBritish actually its the best made by mankind, watch something else if you can't grasp it.
@BlokeBritish
@BlokeBritish 2 роки тому
@@hellelo.5840 first grasp what i said and then reply
@twiggeh3577
@twiggeh3577 4 роки тому
this is still, a year later, the best resource that I've found on cookies and sessions! Chapeau
@MasonE81
@MasonE81 5 років тому
Dude. You are the man. The world needs more videos like this.
@NikogBazza
@NikogBazza 5 років тому
This is the kinds of videos that I've been looking for like 3 years, Thank you so much Sr.
@ArthurBurgan
@ArthurBurgan 3 роки тому
You're the man! It's incredible that we can consume this content for free in such a concise yet thoroughly delivered manner. A big thank you for the time you put in creating these videos and for sharing your knowledge with us!
@Oswee
@Oswee 5 років тому
I would LOVE to hear the same topic but in context of SPA & WebSockets authentication (distributed micro-service systems). This is the No.1 explanation in the whole UKposts! You have a talent!
@medi7573
@medi7573 5 років тому
This video cant be better than it is now, dead simple, concise, strictly to the point,thank you so much for the GREAT content , keep up
@vabolshakov
@vabolshakov 3 роки тому
It can, if the author would tell about signed cookie based session
@awabelmahe9700
@awabelmahe9700 3 роки тому
My goodness, man, not a single second wasted, just a non-stopping flow of information. Your videos are the best on the whole internet; concise, packed, and straight to the point. Thank you very much for what you're doing.
@MrFallout86
@MrFallout86 5 років тому
one of the damn best video I've seen on the topic. Well done sir! And thank you!
@onieltoledo8019
@onieltoledo8019 5 років тому
Awesome video, thanks for this amazing presentation! Concise, to the point, with no jargon but you didn't miss any vital info. Many Thanks!
@fb_a
@fb_a 3 роки тому
This video must be the *prerequisite* video for every web development/backend course out there. Thanks, man! crystal clear explanation!
@tylersmith8245
@tylersmith8245 3 роки тому
This is the most concise and informative resource I've ever seen covering web authentication. Thank you for making this.
@kaushikplays4676
@kaushikplays4676 4 роки тому
Best video one could get on Security. Underrated channel. Thanks!
@jaycelila6258
@jaycelila6258 4 роки тому
hey you! solve most of the missed bridges in my brain. you deserve thumbs up
@fooked1
@fooked1 3 роки тому
This video summarizes hours of other videos and blog posts all over the Internet. Well done.
@TheLordoftheDarkness
@TheLordoftheDarkness Місяць тому
Finally, an explanation for web authentication for people who are not 5 years olds.
@xpfe5zrm
@xpfe5zrm 4 роки тому
This is an amazing video. Very informative, and has little bias so that I can consider the trade offs for myself. Thank you for making this!
@Sybrid203
@Sybrid203 3 роки тому
Wow man, I am amazed by how you simplified everything! Awesome video, made my understanding of all the auths concrete after I watched this video. You're amazing!
@edwinlopez7932
@edwinlopez7932 4 роки тому
Super valuable. Thanks for the breakdown and thoroughness.
@vanyka
@vanyka 4 роки тому
Cheers for keeping it short and to the point bro. Very informative, so definitely a thumbs up!
@vpetevotov
@vpetevotov 5 років тому
Best video about web auth I've ever seen
@peloquin74
@peloquin74 4 роки тому
Your video was a great teaching tool for my interns. You make the complicated simple. WELL DONE SIR!
@girmamoges941
@girmamoges941 3 роки тому
No one had explained like this, it is exceptional and beyond any online presentation that mankind has ever encountered. Absolutely Phenomenal. If a grade has to be given to you, you deserve for five courses in a term with a grade of A+, A+, A+, A+ , A+ with flying colors, or in simple terms " very great distinction" .
@ClearlyCero
@ClearlyCero 4 роки тому
The video is actual gold, good job mate
@ninadmanjaramkar9062
@ninadmanjaramkar9062 3 роки тому
This is the single most amazing piece of information on web auth on the entire internet. Wow.
@robertgardzinski6424
@robertgardzinski6424 4 роки тому
Your video helped me a lot to understand authentication. You put it short and simple. Thank you! Guys like you makes the Internet a better place. :)
@khalidben9940
@khalidben9940 4 роки тому
so far the best video I encountered.Thank you for this amazing content.I am waiting for more like this
@argeelearner3978
@argeelearner3978 5 років тому
Wow!! Thanks bro for sharing. I see you put a lot of work into this video and it is really appreciated. I thought I can just watch this video but I see that i need to LEARN this video and it wont take me one sitting. Thanks again.
@Aman-rm1hq
@Aman-rm1hq 2 роки тому
This is brilliant, you made so many concepts easier to understand in a simple video
@wargaming67
@wargaming67 3 роки тому
This is exactly what I was looking for. Concise but informative explanation. Thank you!
@idhasitha
@idhasitha 4 роки тому
thank you very much for your time spend to create this, everything is here no need to watch any other video or blog regarding Authentication :)
@nitindaphale2008
@nitindaphale2008 2 роки тому
LIKE from INDIA. At least 15 videos, 10 articles, countless days I spent to understand (10%) about authentication techniques and you refreshed that knowledge in one shot!
@fzzybash5915
@fzzybash5915 8 місяців тому
absolut fantastic!
@spencerwilson-softwaredeve6384
@spencerwilson-softwaredeve6384 9 місяців тому
Hey I know this is an old video, but this video is what secured these concepts in my head. Every second of the video is high quality information with very little noise. Thanks!
@bholowasia
@bholowasia 5 років тому
Thanks for all your sessions! One thing on your note on horizontal scaling with session/cookies : once offloaded onto a distributed cache (say redis cluster with consistent hashing for shards) there shouldn't be a problem. If sessions are lost (in case we don't use redundant nodes to backup the session in redis-slave-nodes) - in most cases that should be acceptable. The user only needs to re-login.
@muradmomani8170
@muradmomani8170 4 роки тому
Really one of the best videos on that topic ! Thanks for such great info
@omnipoten8
@omnipoten8 4 роки тому
The best explanation that I ever came across ! Thank you very much !
@JuanFrutos98
@JuanFrutos98 3 роки тому
Thanks, man. You really made everything clear for me now. I'm really thankful for your efforts.
@kevgits
@kevgits 3 роки тому
What a comprehensive and well-put-together vid! Thanks a lot!
@saikk5710
@saikk5710 5 років тому
I really enjoyed this video. You sir are a professional developer with very good presentation skills
@aladdinovich
@aladdinovich 4 роки тому
I love you man, you really made so clear and informative video. I really appreciate your efforts.
@jitender83601
@jitender83601 Рік тому
One of the best video on the JWT and session token management. Great work!
@sanzhar.danybayev
@sanzhar.danybayev 4 роки тому
Thank you! Quite versatile and profund research!
@venkataswamy355
@venkataswamy355 4 роки тому
I spent days of time to understand the specified concepts but with this video opened my eyes.. Wonderful Work Sir! Please keep posting or refer if you already have anything related to OWASP Top 10 testing
@seanlanghi9782
@seanlanghi9782 2 роки тому
Incredible quality and quantity of information here. I'm so grateful for this video. Thank you. (I'm a startup founder who's learning how to build a Web frontend!)
@germanrocha6186
@germanrocha6186 Рік тому
Excellent explanation. It covers everything you need to now about web auth. It saved me a lot of time and effort to learn it on my own. Very compact and clear. Thank you!!
@mrchi6611
@mrchi6611 2 роки тому
Wow. Talk about clarity.... I appreciate the effort. Your content is GOLD
@SkyFly19853
@SkyFly19853 4 роки тому
Thank you sooooo much for this clear explanation!!!! 💯💯💯💯💯💯
@raghualapati4839
@raghualapati4839 3 роки тому
cudos . This is THE BEST explination of session and token i have ever seen and in so much depth and details. Can't thank you enough guys. The best of the best..
@tales4604
@tales4604 4 роки тому
Authentication suddenly became easy. Thanks a lot, sir!
@sbase20d
@sbase20d 2 роки тому
The very best on this topic, very clearly and precisely described, bravo!
@t0khyo
@t0khyo 4 місяці тому
This video is my top pick for the year. Thanks for the awesome content - it really made a humongous difference for me!
@clashoffans496
@clashoffans496 3 роки тому
Thanks a lot! This is the only well-explained content i found on the internet.
@nivellen1168
@nivellen1168 3 роки тому
Thank you very much for this video. I've been struggling with this for quite a while.
@_dhruvawasthi
@_dhruvawasthi 2 роки тому
An excellent video! Includes everything that I was looking for
@ziaahmad8738
@ziaahmad8738 3 роки тому
dude just thank u very much i was so confused but i am relieved now. Perfect.
@davidjiang7929
@davidjiang7929 3 роки тому
This information was really useful for me. I'm just starting webdev and wanted to learn more about how to keep the sessions secure. Thank you!
@tenminutetokyo2643
@tenminutetokyo2643 4 роки тому
Very straightforward and clear. Excellent. Thanks.
@chrislonardo
@chrislonardo 4 роки тому
Excellent explanation, I finally get it. Thank you.
@muj1003
@muj1003 3 роки тому
Best video on Auth. Deserves to be ranked higher by UKposts ...
@abduraufsherkulov1393
@abduraufsherkulov1393 3 роки тому
Seriously, this channel is underrated!
@MrKeepItTrill
@MrKeepItTrill 2 роки тому
Amazing video, makes these concepts easy to understand. Thank you!
@blankblank1273
@blankblank1273 Рік тому
Timestamps: Authentication: 0:16 Session Auth/Flow: 1:24 Session Auth/Features: 2:21 Cookies: 4:10 Cookies/Security: 5:50 Cookies/Attributes: 7:14 Cookies/Flags: 8:02 CSRF: 8:47 Tokens/Flow: 9:35 Tokens/Features: 10:53 JWT: 13:04 JWT/Security: 16:23
@richardkulling1432
@richardkulling1432 22 дні тому
What a great video, clears many questions I had!
@anindian2055
@anindian2055 2 роки тому
This is PERFECT. Thank you for the wonderful content. Learned a lot as a penetration tester.
@AnDreisSh0W
@AnDreisSh0W 3 роки тому
Amazing, complete and we have a good resource to learn!
@ghazini47
@ghazini47 3 роки тому
Thanks so much for the best video on JWT & Session based authentication.
@emanuelfaisca1783
@emanuelfaisca1783 4 роки тому
Excellent video with great explanation of topics! Thanks
@rinakanishi
@rinakanishi 2 роки тому
You're a lifesaver. I can't thank you enough!!
@shreyagarwal7113
@shreyagarwal7113 2 роки тому
Thanks for the effort you put to make it easy to understand. Thank you so much. Now I have more clarity about authentication. Keep making more such videos.
@prayasarora
@prayasarora 4 роки тому
Thank you so much for providing so easy explaination .
@Middollo
@Middollo 3 місяці тому
Exactly what ive been looking for. 🚀 thank you so much!
@BharCode09
@BharCode09 4 роки тому
Full, comprehensive, unbiased and objective unlike most of the speakers go gaga about 1000% STATELESS blah blah! Only REAL benefit I can think of jwt is, that it can mitigate DDSA, that a Front End service, which can reject the request with a just simple signature verification made on JWT, instead of every time going down to authenticate and then reject, as in the case of stateful.
@sanketgawande3667
@sanketgawande3667 Рік тому
Thank you so much sir for this detailed session on client side web security and cookies session things .
@DennisIvy
@DennisIvy 4 роки тому
Great video! I appreciate you putting this together :)
@ayushbajaj1965
@ayushbajaj1965 3 роки тому
This is Gold content. Hands down. Great.
@ericcartman4799
@ericcartman4799 4 роки тому
Best auth tutorial I have watched. Thanks you
@gregfrllo
@gregfrllo 4 роки тому
this is just pure gold.
@prasathj7436
@prasathj7436 Рік тому
Thanks for the excellent video. Clarified few doubts I had. Keep it going.
@Alireza-iv9zr
@Alireza-iv9zr 4 роки тому
this is too good, Well Done!
@anubhavkumarrao3141
@anubhavkumarrao3141 2 роки тому
this is the best video on youtube for "Authentication" :)
@rodneydias9586
@rodneydias9586 4 роки тому
This is a brilliant video , thank you
@stiffyBlicky
@stiffyBlicky 3 роки тому
Great videos. Straightforward, no bullshit. Thank you.
@rahulek914
@rahulek914 4 роки тому
Excellent and thorough. Thanks!!
@vinnair77
@vinnair77 4 роки тому
One of the best videos on the topic.
@AbdulBasit-ib6by
@AbdulBasit-ib6by 3 роки тому
Thank you, Dude. I am very excited to watch this video full of Auth mechanism inside Almost complete information about different Auth mechanism. It's Superb
@ashokrajur09
@ashokrajur09 3 роки тому
best presentation on authentication and its details.. thanks for your time in explaining it very clearly.. appreciate it.
@prasundas4155
@prasundas4155 3 роки тому
while watching this video I was like damm this is what I needed. Thank you sir
@connormccafferty5288
@connormccafferty5288 3 роки тому
Extremely clear explanation.
@naafizrahman6538
@naafizrahman6538 21 день тому
BEST VIDEO EVER PRODUCED! ON AUTH
@ashish1341
@ashish1341 4 роки тому
Hardcore! Best video on the topic.
@rajeshranjan7034
@rajeshranjan7034 3 роки тому
Thankyou so much for providing the clear and precise information
@eugenedumoga677
@eugenedumoga677 3 роки тому
Very very very very very very very very very very very very very very very..........on point. Sums everything on authentication simply! Great content!
@olehbaranovskyi2219
@olehbaranovskyi2219 3 роки тому
thank you! The best video on web auth.
@enfieldli9296
@enfieldli9296 2 роки тому
Matched by none, truly!
@athisii_ekhe6167
@athisii_ekhe6167 Рік тому
Beautifully explained and cleared my doubts. Thank you.
@DaveGogerly
@DaveGogerly 3 роки тому
What a fantastic video, amazing well done!
@123thebruno
@123thebruno 2 роки тому
the didactics of the video are excellent, congratulations .
@diegomonterodesign
@diegomonterodesign 3 роки тому
This is premium quality
@karma_yogi_42
@karma_yogi_42 3 роки тому
i tried this same style to create a tutorial on php. i got pummeled down with down votes. people didt like it when i read out from a slide show. but you! you have done a great service to a lot of people. thank you!
Session Authentication in Express
40:43
Code Realm
Переглядів 144 тис.
Difference between cookies, session and tokens
11:53
Valentin Despa
Переглядів 555 тис.
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
Best OS for programming? Mac vs Windows vs Linux debate settled
8:41
What is JWT? JSON Web Tokens Explained (Java Brains)
14:53
Java Brains
Переглядів 1 млн
Everything You Ever Wanted to Know About Authentication
26:56
Twilio
Переглядів 100 тис.
Design a Simple Authentication System | System Design Interview Prep
17:22
What Is JWT and Why Should You Use JWT
14:53
Web Dev Simplified
Переглядів 1,1 млн
JWT Authentication Node.js Tutorial with GraphQL and React
3:04:08
Ben Awad
Переглядів 260 тис.
Why is JWT popular?
5:14
ByteByteGo
Переглядів 248 тис.
На iPhone можно фоткать даже ночью😳
0:30
GStore Mobile
Переглядів 706 тис.
iPhone 17 Slim - НЕ ОНОВЛЮЙ iPhone в 2024 | Новини Тижня
31:12
Канал Лучкова
Переглядів 24 тис.
Внутренности Rabbit R1 и AI Pin
1:00
Кик Обзор
Переглядів 612 тис.