microservice-security icon indicating copy to clipboard operation
microservice-security copied to clipboard

OAuth2SsoConfigurerAdapter class missing

Open kk-manh opened this issue 8 years ago • 2 comments

Unable to compile/build the classes as OAuth2SsoConfigurerAdapter is missing in the newer spring libraries. Spring docs are not clear on alternatives. So kindly update the example to use latest spring library releases especially spring boot 1.3.0. it will benefit a lot of developers

kk-manh avatar Jan 08 '16 20:01 kk-manh

Hey @kk-manh, check this article out. I ran into this issue as well, but it seems that in Spring Boot 1.3, OAuth2SsoConfigurerAdapter is obsolete and is replaced with a WebSecurityConfigurerAdapter with EnableOAuth2Sso annotation.

https://spring.io/blog/2015/11/30/migrating-oauth2-apps-from-spring-boot-1-2-to-1-3

tktong avatar Jan 31 '16 23:01 tktong

I'm in the middle of upgrading a closed-source project to 1.3 and running into the same issues, and found that guide helpful. Did simply replacing OAuth2SsoConfigurerAdapter for WebSecurityConfigurerAdapter work for you guys? I hope to have some time in the next month to update all my sample apps to use Boot 1.3.

william-tran avatar Feb 05 '16 15:02 william-tran