-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to replace java-container-security to get rid of deprecated spring-security-oauth2 #372
Comments
yes, in case you like to get rid of the deprecated sping-security-oauth2 lib and you have implemented a spring-boot application, this might fit best. Please have also a look at this migration guide: Best regards, |
Hi @nenaraab , Thank you for quick response. The link to migration guide is exactly what I was looking for 👍 However, I have a follow-up question
Regards, |
The readme here provides an overview about all Java open-source client libraries, that are provided here: These migration guides supports you to migrate from Recommended replacement for Spring 5 based and Spring Boot applications is spring-xsuaa. Recommended replacement for J2EE applications is SAP Java Buildpack (>= version 1.26.1). Recommended replacement for Java native applications is java-security. Best regards, |
Hi,
I have a question on maven dependencies for xsuaa. In our Spring boot project, we have the following dependency:
`
com.sap.cloud.security.xsuaa
java-container-security
3.14.0
and
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter;
@EnableWebSecurity
@EnableResourceServer // deprecated
public class WebSecurityConfig extends ResourceServerConfigurerAdapter { // ResourceServerConfigurerAdapter is also deprecated
// rest of the code
`
With this we also get spring-security-oauth2:2.5.0.RELEASE dependency as a transitive. Since, this is deprecated, is it now recommended to use the maven artifact - xsuaa-spring-boot-starter instead of java-container-security as above ?
From the nice set of usage samples provided, I think sample fits our Spring boot app (MVC)
Thank you
Regards,
Santosh
The text was updated successfully, but these errors were encountered: