How to use OAuth 2.0 for security purpose when its deprecated in Spring Boot?

1k Views Asked by At

I have a Spring Boot application. Spring Boot 3 and Java 17. I want to use OAuth 2.0 for security purpose. I checked a few articles. It states that OAuth 2.0 is deprecated. Can anyone suggest how to use OAuth2?

There are options like Keycloack but eventually APIs will go to GCP.

1

There are 1 best solutions below

1
ledigiacomo On

The separate Spring Security OAuth project has been replaced with OAuth2 support in the Spring Security project. Spring has published a migration guide and deprecated all the classes in the former project.