大佬教程收集整理的这篇文章主要介绍了Spring Boot 2.0.0 + OAuth2,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
Spring Security 5使用现代化的密码存储,请参阅OAuth2 Autoconfig:
要解决您的问题,请参阅Spring Security Reference:
Spring Boot 2 + Sping Security
OAuth2是否仍支持@AuthorizationServer
注释?通过阅读发行说明,还没有移植一些内容:
Oauth2支持
这是我的相关部分build.grade
:
验证服务器
// security
compile "org.springframework.boot:spring-boot-starter-security:${springBootVersion}"
// oauth
// https://mvnrepository.com/artifact/org.springframework.security.oauth/spring-security-oauth2
compile "org.springframework.security.oauth:spring-security-oauth2:2.2.1.RELEASE"
客户端服务器
// support for Oauth2 user token services not yet migrated into Spring Boot 2.0
compile "org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.1.bUILD-SNAPSHOT"
而现在我的授权服务器的oauth2端点只返回一个401,当我试图通过一个客户端ID和客户端秘密为Basic
Authentication
对/oauth/token
。传递用户名和密码会给出不同的代码路径。因此,看起来OAuth过滤器的排列不完全。
是否有配置更新,或者我需要一组不同的gradle依赖项才能将Authorization Server恢复到以前的状态?
谢谢!
更新
我想结束这个问题的循环。除了加密客户端秘密。从Spring OAuth 2.3.2开始,redisTokenStore问题也已解决:Spring
OAuth 2.3.2
以上是大佬教程为你收集整理的Spring Boot 2.0.0 + OAuth2全部内容,希望文章能够帮你解决Spring Boot 2.0.0 + OAuth2所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。