【发布时间】:2018-04-15 10:37:26
【问题描述】:
项目地点:https://github.com/nydiarra/springboot-jwt
我正在使用上述项目通过 Spring Boot 完成 OAuth 身份验证。但是在调用“http://localhost:8080/oauth/token”时,在我将“spring-boot-starter-parent”版本升级为“2.0.0.RELEASE”后会抛出“Unauthorized”错误。我该如何解决这个问题?
克隆项目时,“spring-boot-starter-parent”版本为“1.5.3.RELEASE”,这意味着我可以进行身份验证。 更改版本后,抛出“未经授权”错误。
【问题讨论】:
-
可能与新密码存储格式有关...docs.spring.io/spring-security/site/docs/5.0.3.RELEASE/…
-
能给个安全配置代码吗?
标签: java spring spring-boot oauth-2.0