POST /auth/oauth2/token?grant_type=password&scope=server HTTP/1.1 Host: pig-gateway:9999 Authorizati
POST /auth/oauth2/token?grant_type=password&scope=server HTTP/1.1 Host: pig-gateway:9999 Authorizati
地址:https://spring.io/projects/spring-authorization-server 该文档目前包含了以下几个重要的模块: 项目概述:简介和功能列表。 在本次版本中又增加了两名新的贡献者(Contributor): @appchemist @NotFound403(胖哥)[3] 参考资料 [1]文档: https://spring.io/projects/spring-authorization-server [2]0.3.0 changelog: https://github.com/spring-projects/spring-authorization-server/releases/tag/0.3.0
git@github.com:spring-projects-experimental/spring-authorization-server.git Spring-authorization-server rfc6749就是其协议规范,spring-authorization-server也是基于该规范来实现的。 那么如何测试上面的配置确实是可以用的呢? 目前spring-authorization-server只支持到了如下功能 其中像password 还没有实现,还是在开发阶段,如果是对OAuth2不能等的小伙伴,例如spring所说,有其他开源的项目 ,例如keycloak,有兴趣的小伙伴可以结合rfc文档对keycloak进行测试,官方网站是 https://www.keycloak.org/ 总结 本文对rfc规范以及spring-authorization-server 目前spring-authorization-server还是在开发阶段,已经支持了部分的OAuth2协议,有时间的小伙伴可以去贡献代码,将来大家用的都是你写的代码,大家唱的都是你写的歌!
目前Spring Authorization Server初步进入生产就绪状态,在Github上拥有了新的代码仓库: https://github.com/spring-projects/spring-authorization-server
参考资料 [1] Spring Authorization Server:https://github.com/spring-projects-experimental/spring-authorization-server
要实现oauth2授权服务器的话,有如下选择: spring-authorization-server spring官方发布的第二代的授权服务项目,但目前使用的人较少,感觉也还不是很成熟。 版本 Initial Release End of Support jdk 备注 1.1.x 2023-05-16 2024-05-16 java17 https://docs.spring.io/spring-authorization-server current/reference/html/getting-started.html 1.0.x 2022-11-21 2025-11-21 java17 https://docs.spring.io/spring-authorization-server 1.0.3/reference/html/getting-started.html 0.4.x 2022-11-20 2025-11-21 Java 8 https://docs.spring.io/spring-authorization-server
更多细节可以参阅 发布说明(https://github.com/spring-projects/spring-authorization-server/releases/tag/0.2.2),另外,该 示例应用(https://github.com/spring-projects/spring-authorization-server/tree/main/samples) 也可以帮助开发者入门。
此模块基于已过期的 Spring Security OAuth2 项目,新项目 spring-authorization-server 正在研发中,查看 最新进展,完成后会迁移。
https://docs.spring.io/spring-authorization-server/reference/overview.html注意:OpenID Connect应当仅为认证阶段使用
同时公布了项目源码地址:https://github.com/spring-projects-experimental/spring-authorization-server 在这个版本中,主要提供了如下功能
同时公布了项目源码地址:https://github.com/spring-projects-experimental/spring-authorization-server 在这个版本中,主要提供了如下功能
目前使用 Spring-Security-OAuth2 作为基础,后续将迁移到 spring-authorization-server 项目。
spring-cloud-starter-oauth2</artifactId> </dependency> 三、核心组件选型 最佳方案: spring-boot-starter-security + spring-authorization-server 截至 2021年8月,spring-authorization-server 的最新版本是 0.1.2,最新的消息请关注官方动态 https://spring.io/blog/2020/04/15/announcing-the-spring-authorization
spring-cloud-starter-oauth2</artifactId> </dependency> 三、核心组件选型 最佳方案: spring-boot-starter-security + spring-authorization-server 截至 2021年8月,spring-authorization-server 的最新版本是 0.1.2,最新的消息请关注官方动态 https://spring.io/blog/2020/04/15/announcing-the-spring-authorization