Spring Security 5.2.0.M3 发布,Spring 安全框架

栏目: Java · 发布时间: 5年前

内容简介:Spring Security 5.2.0.M3 已发布,更新内容如下:与其他请求后处理器类似,此特性包括对

Spring Security 5.2.0.M3 已发布,更新内容如下:

OAuth 2.0

redirectUriTemplate

与其他请求后处理器类似, jwt() 可用于使用  JwtAuthenticationToken 建立  SecurityContext

mockMvc.perform(get("/")
       .with(jwt(jwt -> jwt.claim("scope", "message:read"))));

Core

proxyBeanMethods=false

此特性包括对 AbstractSecurityWebSocketMessageBrokerConfigurer 和  GlobalMethodSecurityConfiguration 类的更改。

为了适应这些变化,扩展 AbstractSecurityWebSocketMessageBrokerConfigurer 的用户覆盖方法  inboundChannelSecurity 将需要更新方法签名来匹配以下内容:

@Bean
public ChannelSecurityInterceptor inboundChannelSecurity(
    MessageSecurityMetadataSource messageSecurityMetadataSource) {
// implementation
}

相似地,用户扩展 GlobalMethodSecurityConfiguration 需要更新方法签名以匹配以下内容:

@Bean
public MethodInterceptor methodSecurityInterceptor(
    MethodSecurityMetadataSource methodSecurityMetadataSource) {
// implementation
}

Web

支持 X509 Reactive

发布公告


以上所述就是小编给大家介绍的《Spring Security 5.2.0.M3 发布,Spring 安全框架》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Alone Together

Alone Together

Sherry Turkle / Basic Books / 2011-1-11 / USD 28.95

Consider Facebookit’s human contact, only easier to engage with and easier to avoid. Developing technology promises closeness. Sometimes it delivers, but much of our modern life leaves us less connect......一起来看看 《Alone Together》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试