@EnableResourceServer @EnableAuthorizationServer are deprecated?

20,640

Solution 1

As previous comments suggest this was originally dropped, but has recently been resurrected as https://github.com/spring-projects-experimental/spring-authorization-server

See the news post here.

Solution 2

From

https://spring.io/blog/2019/11/14/spring-security-oauth-2-0-roadmap-update

In 2019, there are plenty of both commercial and open-source authorization servers available. Thus, the Spring Security team has decided to no longer provide support for authorization servers.

UPDATE: We’d like to thank everyone for your feedback on the decision to not support Authorization Server. Due to this feedback and some internal discussions, we are taking another look at this decision. We’ll notify the community on any progress.

Basically spring drop support for auth servers since there is a lot of good service already working,not need to reinvent the whel. But they are rethinking it, I imagine it is to give more scope to sprig framework

Share:
20,640

Related videos on Youtube

rakesh mehra
Author by

rakesh mehra

Updated on August 05, 2021

Comments

  • rakesh mehra
    rakesh mehra almost 3 years

    I am writing a simple application to test Oauth. But i see that both the annotations @EnableResourceServer @EnableAuthorizationServer were deprecated!

    I don't find an alternative way to deal with it and I don't find any info anywhere.

    What is the latest way to configure resource server and Auth server?

    Thanks!

    • Eleftheria Stein-Kousathana
      Eleftheria Stein-Kousathana over 4 years
      You can take a look at the announcement of deprecating spring-security-oauth in this blog post and see the migration guide provided by spring security here.
    • CodeFactory.DEV
      CodeFactory.DEV about 4 years
      OAuth2.0 resource server is now part of spring-security core. Unfortunately they do not have a replacement for EnableAuthorizationServer. I am following this GUIDE (github.com/spring-projects/spring-security/wiki/…)