What is a JWT (JSON Web Token) and why your REST API needs it

  Рет қаралды 26,713

Nick Chapsas

Nick Chapsas

Күн бұрын

Пікірлер: 36
@Azukayoshi
@Azukayoshi 4 жыл бұрын
Love the whiteboard presentations Nick, really helpful and well explained.
@Gomide83
@Gomide83 4 жыл бұрын
I liked the whiteboard, thank u for the explanation of this concept. Very clear and simple. Also, very helpful to complement the tutorial series. Thanks a lot.
@joancamilomina2097
@joancamilomina2097 10 ай бұрын
Very clear and concise explanation, Thanks Nick, keep up the good work !
@femus03
@femus03 6 ай бұрын
Clear explanation and presentation, thank you
@wanderingchestnut2342
@wanderingchestnut2342 4 жыл бұрын
Very clear explanation. I really love your work. Thank you Nick.
@twiksify
@twiksify 3 жыл бұрын
5:10 Since the header is in clear text an attacker can change the header to forge a token. A malicious user may replace the hash key, inject a key and change alg, even none is valid alg which completely bypasses the validation. Please do not trus the header, instead rely on the hash key used during creation of the token.
@nickchapsas
@nickchapsas 3 жыл бұрын
No one said to trusts the header. I said check against the hash which is the last part of the token
@twiksify
@twiksify 3 жыл бұрын
@@nickchapsas yes, however my point is that the hash function and hash key can be replaced to bypass validation.
@nickchapsas
@nickchapsas 3 жыл бұрын
@@twiksify They can but they are part of the hash itself so if you change them then the hash that you produce during token validation won't match the hash in the token.
@twiksify
@twiksify 3 жыл бұрын
@@nickchapsas There are several headers to change the hash key (kid, x5c, x5u) to make validation pass against an injected secret. The header alg can also be misused to make a public key to act as symmetric key, this is only applicable if the server is configured to use a cert however.
@nickchapsas
@nickchapsas 3 жыл бұрын
@@twiksify Sorry I think you don't quite understand how JWTs and the validation against them works
@CecilPhillip
@CecilPhillip 5 жыл бұрын
Really good explanation on JWTs
@secretmind92
@secretmind92 4 жыл бұрын
Simple and straight to the point, thank you.
@caikhenrik10
@caikhenrik10 4 жыл бұрын
thats a realy good video. Nice work and keep doing videos!
@eniluck5071
@eniluck5071 3 жыл бұрын
Thanks for explaining and comparison of jwt and cookie.
@funkel1989
@funkel1989 5 жыл бұрын
doing a video on an implementation of this would also be great. It would also be cool to see a video on the use of that auto mapper tool you've talked about a few times. learning how to use that would save tons of time. Also, while I'm not sure how popular it would be on youtube but showing some unit testing, especially of your posts service, would be a great help. Unit testing entity framework is annoying.
@donoboyle8718
@donoboyle8718 4 жыл бұрын
He has one! kzbin.info/www/bejne/g2eknJV4lql6gKc
@MrSabifa
@MrSabifa 5 жыл бұрын
Great explanation!
@FabioGomesCG
@FabioGomesCG 4 жыл бұрын
Nice explain... Ty
@yele2652
@yele2652 2 жыл бұрын
Hi, Nick, thanks for the video. I have a question: With Jwt, Although we dont have to store session/state on each machine, we must store the secret along with a method that checks the token validity on each machine. Having said that, is jwt better than session/state (for that specific aspect)?
@hamedmoghadasi3693
@hamedmoghadasi3693 5 жыл бұрын
Good Video, Thank you
@soesoemaw4518
@soesoemaw4518 4 жыл бұрын
Thank you so much.
@germanrodrigoalvarez8182
@germanrodrigoalvarez8182 5 жыл бұрын
Great video !
@shashankpandey1019
@shashankpandey1019 4 жыл бұрын
please make a video on identity server
@InCircle
@InCircle 4 жыл бұрын
Can we have video on AD Authentication in Web API .net core ?
@murunwascengy2762
@murunwascengy2762 5 жыл бұрын
Very helpful , can you please share a github link for source code?
@nickchapsas
@nickchapsas 5 жыл бұрын
There is no source code for this specific video but I will be releasing the code in the next video which is the implementation video for this concept.
@MrTalhakamran2006
@MrTalhakamran2006 4 жыл бұрын
It still doesn't make any sense. How is it different then sending password. I mean if someone hacks my computer and copies the JWT, he/she can access my account on website?
@MrTalhakamran2006
@MrTalhakamran2006 4 жыл бұрын
I meant to say it only solves the problem where we have cluster but it doesn't strengthen the authentication. In one of your replies below, you mentioned that authentication or JWT can be secured using HTTPS. So I guess JWT + HTTPS is the secure way to go. Can you explain how it is different than CSRF?
@serhiihorun6298
@serhiihorun6298 4 жыл бұрын
Thanks
@livelaurent
@livelaurent Жыл бұрын
Using a cluster as a reason why JWT are even existing is wrong… Clusters are very easy way to handle that (shared session storage etc.), this video is misleading a lot of people by explaining a reason for JWT that is not really a good reason. (I’m not going to explain it but people should look at some resources, one of the main reason is about distributed system and that cannot always authenticate you against the original system for instance, or having tickets with only a specific set of claims etc.. but Load balancing is def. NOT a reason why JWT exists, there are so many ways to handle that and it was there way before JWT)
@lucisaeterna3590
@lucisaeterna3590 5 жыл бұрын
'How to implement Google/Microsoft/Twitter... authentication?'
@nickchapsas
@nickchapsas 5 жыл бұрын
Great proposal. My next video will be about that. Thanks!
@Alakeks
@Alakeks Жыл бұрын
Thanks
What is JWT? JSON Web Tokens Explained (Java Brains)
14:53
Java Brains
Рет қаралды 1 МЛН
Where are types allocated in .NET and why people get it so wrong
14:35
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
What Is JWT and Why Should You Use JWT
14:53
Web Dev Simplified
Рет қаралды 1,2 МЛН
What is a Refresh Token and why your REST API needs it?
4:53
Nick Chapsas
Рет қаралды 140 М.
The Auth Setting That Everyone MUST Change in .NET
10:35
Nick Chapsas
Рет қаралды 44 М.
APIs for Beginners - How to use an API (Full Course / Tutorial)
3:07:07
freeCodeCamp.org
Рет қаралды 3,1 МЛН
JWT Authentication Tutorial - Node.js
27:36
Web Dev Simplified
Рет қаралды 1 МЛН
8 await async mistakes that you SHOULD avoid in .NET
21:13
Nick Chapsas
Рет қаралды 317 М.
Session Vs JWT: The Differences You May Not Know!
7:00
ByteByteGo
Рет қаралды 314 М.
Writing tests in .NET using xUnit -  xUnit Tutorial
25:50
Nick Chapsas
Рет қаралды 130 М.