Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@EnableResourceServer @EnableAuthorizationServer are deprecated?

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!

like image 386
rakesh mehra Avatar asked Sep 08 '25 10:09

rakesh mehra


2 Answers

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.

like image 71
Custard Avatar answered Sep 12 '25 05:09

Custard


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

like image 25
Jesus Hernandez Barrios Avatar answered Sep 12 '25 03:09

Jesus Hernandez Barrios