This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

JWT v/s OAuth2  RSS feed

 
Ranch Hand
Posts: 387
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

What is the difference between JWT and OAuth2? Can we use them interchangeably? Please share some good resources to learn about both.

Regards.
 
Marshal
Posts: 63352
205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you searched for them, what did it say? What don't you understand of what you found?
 
Vaibhav Gargs
Ranch Hand
Posts: 387
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Campbell,

I understood that OAuth2 can be used to access the authentication/authorization from 3rd party apps such as google/facebook etc. So, just wondering if we can use it in our apps as well?

And, in JWT, there is a json web token which contains information about algorithm, payload and signature, so, what is included in OAuth2 token?

Thanks.
 
Master Rancher
Posts: 1161
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Vaibhav Gargs wrote:
I understood that OAuth2 can be used to access the authentication/authorization from 3rd party apps such as google/facebook etc. So, just wondering if we can use it in our apps as well?


Yes you can. I have used it before in springBoot with springSecurityApps.
here you can find some more information on the token
 
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!