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.
Asked
Active
Viewed 1.1k times
8

romeara
- 1,426
- 1
- 17
- 26
-
That makes sense, I apologize for not finding those originally - I will look at them and see if both are still not marked as duplicate and answer there. Thanks for the guidance! – romeara Mar 15 '18 at 01:03
1 Answers
14
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.

romeara
- 1,426
- 1
- 17
- 26
-
1Before it's suggested, I could not clarify this or otherwise provide this answer in the original GitHub discussion location, as a project maintainer chose to lock the conversation immediately after answering the question – romeara Mar 11 '18 at 17:10
-
-
-