![](/img/trans.png)
[英]OAuth2 JWT Authorization - Issue With Spring Security XML Configuration #oauth2.hasScope
[英]spring security oauth2 hasScope xml method security upgrade to what?
作为spring-security-oauth2
obsoleted ref: EOL for Spring Security OAuth ,
不能在 OAuth2SecurityExpressionMethods.java 提供的xml配置中使用#oauth2.hasScope([scope])
期望在spring-security-oauth2-jose
、 spring-security-oauth2-client
、 spring-security-oauth2-core
中看到 ast 解析器或类似处理程序,以在以下示例#oauth2 security expressions on method level中完成。
对于 oauth2 scope 检查的 xml 配置,我错过了什么吗?
或者我必须通过hasAuthority('SCOPE_[scope]')
来实现它
谢谢
必须切换到 hasAuthority("SCOPE_scope")
Spring Security converts scopes that follow the granted authority naming convention
参考: OAuth 2.0 迁移指南
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.