Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EnableOAuth2Sso Annotation Missing On Upgrade To Spring Boot 2 [duplicate]

When upgrading to spring boot 2.0.0 from an earlier version, it appears that the @EnableOAuth2Sso annotation from the spring-boot-autoconfigure library has been removed. The migration guide and release notes are unclear as to what to use instead, or where it might have moved.

like image 247
romeara Avatar asked Mar 11 '18 17:03

romeara


1 Answers

After discussions in an existing GitHub issue on spring boot, I was eventually led to the annotation's location in the 2.0.0 release. It has been moved to a project completely new to the 2.0.0 release artifacts.

To resolve this issue and migrate your project, add the artifact org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure to your dependency management configuration.

like image 76
romeara Avatar answered Oct 21 '22 10:10

romeara