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

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

内容简介: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 安全框架》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

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

A Project Guide to UX Design

A Project Guide to UX Design

Russ Unger、Carolyn Chandler / New Riders Press / 2009-3-23 / USD 39.99

"If you are a young designer entering or contemplating entering the UX field this is a canonical book. If you are an organization that really needs to start grokking UX this book is also for you. " -......一起来看看 《A Project Guide to UX Design》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具