繁体   English   中英

spring security oauth2 hasScope xml 安全升级到什么方法?

[英]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-josespring-security-oauth2-clientspring-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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM