OAuth Vs JWT | What is the difference? | Tech Primers

  Рет қаралды 156,375

Tech Primers

Tech Primers

Күн бұрын

Пікірлер: 57
@JasonPoley71
@JasonPoley71 7 жыл бұрын
A JWT itself is typically base64 encoded and hash signed... not encrypted. And typically the server giving the JWT isn't the same server consuming its entitlements during use.
@TechPrimers
@TechPrimers 7 жыл бұрын
+Jason Poley thanks Jason
@rafalo2323
@rafalo2323 7 жыл бұрын
Ajay, greetings from Poland, you are doing outstanding job, the first step on the path is the most difficult, we lift up each other, but you are leading on the path, keep going...
@TechPrimers
@TechPrimers 7 жыл бұрын
+Rafal Otwinowski thank you rafal. cheers
@AbhishekKumar-ub8co
@AbhishekKumar-ub8co 5 ай бұрын
Login part that you are explaining is I guess OIDC because OAuth alone is just meant for Authorization, it is basically OIDC that enforces login and hence the Authentication
@shishirkumar8335
@shishirkumar8335 6 жыл бұрын
Resource server and Authorization server here both reside in Google or Face book. Application glass door is not same as resource server
@shankarwannalwad4882
@shankarwannalwad4882 Жыл бұрын
glassdoor also can be resource server. By using Key cloak or amazon cognito you can create your own Auth server and Resource sever. Resouce server will decide what api i should expose to client on the basis of role configured in Auth server. If your application is fetching data of glassdoor and showing some reports. Then glassdoor can be resource server for your application. You can configure same in Auth server created by you.
@rafalo2323
@rafalo2323 7 жыл бұрын
Hi Ajay, I think A and B steps should be between Client and Authorization Server in oauth2 section, please correct me if I am mistaken (authentication logic/gateway should be located at Authorization/OAuth2 server, in case of multiple instances of resource server it avoid "duplicate authentication" gateway functionality), thanks in advance
@argiebarcena9284
@argiebarcena9284 2 жыл бұрын
Very informative and clear information, it helps me a lot. Thanks, bro
@vikramb5864
@vikramb5864 5 жыл бұрын
OAuth is for Authorization and not Authentication. Don't make videos with incorrect information.
@david-tracy
@david-tracy 6 жыл бұрын
Hi, thanks for putting your time into this. I appreciate it. I was wondering, what is the difference between a framework and a protocol?
@TechPrimers
@TechPrimers 6 жыл бұрын
protocol is a standard. framework is a opinionated way of doing something/an implementation
@Anonymous-pe5pp
@Anonymous-pe5pp 2 жыл бұрын
Very nice Explanation. thanks
@raghavenderkuppireddy7158
@raghavenderkuppireddy7158 Жыл бұрын
Very good explation ❤
@ppvshenoy
@ppvshenoy 4 жыл бұрын
Awesome explanation. Thanks for your time. Much appreciated.
@rafalo2323
@rafalo2323 7 жыл бұрын
another thing about oauth2: the goal is delegate access to SUBSET of resources - not all, because if token is compromise you lost only some subset of cloud services/data not all (happen when your account is compromised), imagine google account: you got gemail and google drive, calendar etc...
@TechPrimers
@TechPrimers 7 жыл бұрын
HI Rafal, completely agree with your explanation.Thanks for the detailed explanation.
@lincethomas2365
@lincethomas2365 7 жыл бұрын
Well done mate!
@TechPrimers
@TechPrimers 7 жыл бұрын
+Lince Thomas thanks lince
@csangora
@csangora 3 жыл бұрын
Hi Nice simple and effective explanation, Really liked it!
@rafalo2323
@rafalo2323 7 жыл бұрын
OAuth2 section: perhaps there is some misunderstanding: CLIENT should be THIRD PARTY APPLICATION relaying on "resource server" services (oauth2 is designed for applications that are using distributed services in the cloud - not for "me and service" scenario) the goal is to NEVER gives user/password credentials to third party potentially untrusted applications (CLIENT) - think of Client as mobile application doing some extra function build on existing basic "Resource Server" functionality. What is your option about it?
@phyoewaipaing6670
@phyoewaipaing6670 2 жыл бұрын
Yes, same idea. Otherwise, there will be a confusion of 'Client' being a user or a user's browser.
@iamdeveloper552
@iamdeveloper552 6 жыл бұрын
You are so good my brother .
@gautamtyagi8846
@gautamtyagi8846 6 жыл бұрын
really helpful video. thanks a lot
@atech_guide
@atech_guide 7 жыл бұрын
That's what an immaculate comparison looks like !! Well done dude !! May I know your name please :)
@TechPrimers
@TechPrimers 7 жыл бұрын
+Kamran Ali my pleasure Kamran. I'm Ajay
@czsokola
@czsokola 5 жыл бұрын
Does the resource server need to communicate with auth server? Isn't the JWT token verifiable by itself?
@ziedmiladi4320
@ziedmiladi4320 7 жыл бұрын
spring sécurity with Oauth2 and angular 2 plz . thanks
@semikolon4229
@semikolon4229 6 жыл бұрын
Thanks, helped a lot.
@skybirdge
@skybirdge 6 жыл бұрын
Super. Thanks for the this video
@skybirdge
@skybirdge 6 жыл бұрын
Please explain the code implementation tutorial of oauth with angular and node is and angular and springboot
@vandolphreyes7207
@vandolphreyes7207 5 жыл бұрын
Wow, clearly explained. Thanks +1
@kitakita5409
@kitakita5409 Жыл бұрын
OAuth is for both authentication and authorization
@whatsmyname9742
@whatsmyname9742 2 жыл бұрын
You are explaining OAuth authentication and not authorization, primary use of OAuth is authorization, its better to explain that flow first as authentication is just outcome of authorization service by OAuth.
@kitakita5409
@kitakita5409 Жыл бұрын
JWT is for authorization
@sbnighut
@sbnighut 4 жыл бұрын
A minor suggestion: Background noise is distracting.
@skybirdge
@skybirdge 6 жыл бұрын
What is the difference between oauth 1&2?
@david-tracy
@david-tracy 6 жыл бұрын
1 is a protocol, 2 is a framework. 2 is less secure.
@arvindynr
@arvindynr 4 жыл бұрын
jwt token expires with server restart whereas OAuth doesn't.
@sasuki479
@sasuki479 3 жыл бұрын
I think Rahu and Mangal are not in their lagna. Donate 10kg grass to Cow for 1 month and your issue should be resolved.
@andrews13
@andrews13 2 жыл бұрын
OAuth2 vs JWT
@ericjonas6044
@ericjonas6044 7 жыл бұрын
If I want to achieve Single Sign On, can I use JWT? e.g. I have 5 apps - core app (java spring - all users registrations / accounts are here, mysql) - app 1 (java spring boot, mysql) - app 2 (laravel, postgres) - app 3 (asp.net, sql server) - app 4 (java legacy, oracle) Note: I have full control to these source codes of each app. browser login to the core app. Once accessed, the user can navigate to any of the apps without a need to login again. Can JWT use for this case? But I do wonder, do i need to store each user profile into each app's database? I won't go with oAuth, as each time accessing the app requires to ask for permission. My users are older demographics can poised a challenge. Any tips for me? Thanks.
@TechPrimers
@TechPrimers 7 жыл бұрын
+Eric Jonas Hi Eric, Your usecase is an awesome example of how enterprise firms handle authentication in their built in systems which are handled by multiple teams. If you go for JWT+https, you should be ok. However to solve the user namr password validation everytime, what you can do is create a token from ur auth server and use it. But its upto you to choose which ever best suits for ur usecase. I will tell the advantage of token based system in enterprise: Every app should connect to Auth server to create a token. All other server side apps can validate the token with AuthServer for every request provided by the client. The only downside of passing username n password everytime is the safety. Even if 1 request is hacked, your username is fully exposed. Drop me a mail @ techprimerschannel@gmail.com, i will add u to thr slack community. You will get suggestions from most of viewers of this channel
@ericjonas6044
@ericjonas6044 7 жыл бұрын
Thanks for replying back. Yeah, also email you too. As for this "The only downside of passing username n password everytime is the safety. Even if 1 request is hacked, your username is fully exposed." How can someone hack a JWT token? Is that possible? And what do you recommend? I hope can custom build via Spring 4 instead of using some open source or paid 3rd party solution. Example, Keycloak... as most of my end users are still using IE8, based on the project contributor may not be able to support due to the JS library. Unfortunately they will still use IE8 for next few years. Any tips? Thanks.
@ericjonas6044
@ericjonas6044 7 жыл бұрын
Noted
@erencansinecan775
@erencansinecan775 6 жыл бұрын
I'm not gonna give a thumbs down but this was shallow and occasionally incorrect. Signing is not encrypting for instance. You're not fully familiar with these things yourself, and you don't have flash cards or smth to help you out. If I were you, I'd do an implementation of both of them (from scratch, not via a library) and do a second take of this video with that new understanding. And I'm gonna give a thumbs down too.
@david-tracy
@david-tracy 6 жыл бұрын
I appreciate the video. I do however think the video should probably be removed after reading the rest of the comments here because unfortunately it does appear the knowledge gaps here are too much and in fact it appears that there's actually too much incorrect data being told here also. I still will give a thumbs up though and will subscribe to see if you put a new one out. Signatures - ensures the data wasn't modified during transfer. Encryption - prevents unauthorized parties from reading the data. Here's a .pdf I got my hands on a couple of days ago if anyone reading this comment is very interested in learning about JWT. I haven't gotten my hands on one for OAuth yet so can't help there :) assets.ctfassets.net/2ntc334xpx65/o5J4X472PQUI4ai6cAcqg/c0f09bd6d2ec494462ea684ab065781d/jwt-handbook-v0_14_1.pdf Good luck to everyone
@gileneusz
@gileneusz 6 жыл бұрын
gada jak kaczka
@Kingside88
@Kingside88 4 жыл бұрын
indian english is hard to understand. Sorry :-(
@sasuki479
@sasuki479 3 жыл бұрын
I think Rahu and Mangal are not in their lagna. Donate 10kg grass to Cow for 1 month and your issue should be resolved.
@ranjan098
@ranjan098 2 жыл бұрын
Atleast we speak english.. think this was in chinese:)
@110177019
@110177019 Ай бұрын
It's absolutely impossible listening to such heavy accent. Almost non-understandable.
#35 What is JWT and Why
14:47
Telusko
Рет қаралды 28 М.
This Game Is Wild...
00:19
MrBeast
Рет қаралды 188 МЛН
OAuth 2.0 explained with examples
10:03
ByteMonk
Рет қаралды 161 М.
OAuth and OpenID Connect - Know the Difference
10:18
Viraj Shetty
Рет қаралды 11 М.
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 657 М.
oAuth for Beginners - How oauth authentication🔒 works ?
10:43
What Is JWT and Why Should You Use JWT
14:53
Web Dev Simplified
Рет қаралды 1,2 МЛН
Session Vs JWT: The Differences You May Not Know!
7:00
ByteByteGo
Рет қаралды 263 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
Spring Security 6 with Spring Boot and JWT Tutorial
3:14:14
Telusko
Рет қаралды 133 М.