我正在编写一个简单的应用程序来测试Oauth。但是我发现@EnableResourceServer @EnableAuthorizationServer这两个注解都被弃用了!
我找不到其他方法来处理它,我也找不到任何信息。
配置资源服务器和身份验证服务器的最新方法是什么?
谢谢!
发布于 2020-06-19 22:44:27
正如之前的评论所暗示的那样,它最初被丢弃了,但最近又被重新命名为https://github.com/spring-projects-experimental/spring-authorization-server
请参阅新闻帖子here。
发布于 2020-11-27 04:47:08
从…
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.
基本上spring drop支持身份验证服务器,因为有很多好的服务已经在运行,不需要重新发明whel。但是他们正在重新考虑它,我想这是为了给sprig框架更多的空间。
https://stackoverflow.com/questions/59405465
复制相似问题