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

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

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

查看所有标签

猜你喜欢:

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

Python Cookbook

Python Cookbook

Alex Martelli、Anna Ravenscroft、David Ascher / 高铁军 / 人民邮电出版社 / 2010-5-1 / 99.00元

本书介绍了Python应用在各个领域中的一些使用技巧和方法,从最基本的字符、文件序列、字典和排序,到进阶的面向对象编程、数据库和数据持久化、 XML处理和Web编程,再到比较高级和抽象的描述符、装饰器、元类、迭代器和生成器,均有涉及。书中还介绍了一些第三方包和库的使用,包括 Twisted、GIL、PyWin32等。本书覆盖了Python应用中的很多常见问题,并提出了通用的解决方案。书中的代码和方......一起来看看 《Python Cookbook》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具