Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

spring-security-oauth2 vs spring-cloud-starter-oauth2

I am working on building an oAuth2 application using spring boot. However, there are various sample projects in Github using spring-security-oauth2 and spring-cloud-starter-oauth2.
Do we have specific scenarios where we can use a specific jar among both for an application?

Though Spring cloud is mainly used for distributed systems. There are a lot of implementations on Github using spring-cloud-starter-oauth2 for even non-distributed applications. Thanks.

like image 249
Shweta Gupta Avatar asked Nov 27 '18 12:11

Shweta Gupta


1 Answers

Spring initially moved oauth2 to spring cloud started but as of version 2.4.0.M1 it was moved to spring security. You will be able to verify on start.spring.io that oauth2 cloud dependency is only in version >=2.0.0.RELEASE and <2.4.0.M1 enter image description here

like image 196
Ujjwal Pathak Avatar answered Oct 12 '22 01:10

Ujjwal Pathak