【问题标题】:@EnableResourceServer @EnableAuthorizationServer are deprecated?@EnableResourceServer @EnableAuthorizationServer 已弃用?
【发布时间】:2020-04-11 19:11:19
【问题描述】:

我正在编写一个简单的应用程序来测试 Oauth。但是我看到 @EnableResourceServer @EnableAuthorizationServer 两个注释都被弃用了!

我没有找到其他方法来处理它,也没有在任何地方找到任何信息。

配置资源服务器和认证服务器的最新方法是什么?

谢谢!

【问题讨论】:

  • 你可以看一下this blog post中弃用spring-security-oauth的公告,也可以看spring securityhere提供的迁移指南。
  • OAuth2.0 资源服务器现在是 spring-security 核心的一部分。不幸的是,他们没有 EnableAuthorizationServer 的替代品。我正在关注本指南 (github.com/spring-projects/spring-security/wiki/…)

标签: spring-security spring-security-oauth2


【解决方案1】:

正如之前的 cmets 所暗示的,这最初是被删除的,但最近被复活为 https://github.com/spring-projects-experimental/spring-authorization-server

查看新闻帖子here。

【讨论】:

    【解决方案2】:

    来自

    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 放弃了对身份验证服务器的支持,因为有很多好的服务已经在工作,不需要重新发明轮子。但他们正在重新考虑它,我想这是给 sprig 框架更多的空间

    【讨论】:

      猜你喜欢
      • 2017-11-01
      • 2021-04-11
      • 2014-02-12
      • 1970-01-01
      • 2016-03-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-27
      相关资源
      最近更新 更多