Issue
i am just migrating a spring 3 application from xml-configuration to java config.
We are using spring 3.2.8 + spring security 3.2.4. I am wondering how to move the following XML config to java.
<oauth:client id="oauth2ClientFilter" />
Any idea?
Solution
Ok, so it seems (if you are not using spring boot) right now there is no direct possibility of doing a full java-configuration for SSO/OAuth2.
I got around it by using @import to load my old XML-based configuration-
@Configuration
@EnableWebSecurity
@ImportResource({"classpath*:spring-security-RSA.xml"})
public class SecurityRSAStrategyConfiguration {
...
}
Answered By - NeoP5
Answer Checked By - Mary Flores (JavaFixing Volunteer)