Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreOn behalf of the community, I’m pleased to announce the release of Spring Security 5.2.0.M3! You can find the complete details in the changelog and the highlights below:
redirectUriTemplate expansionSimilar to other request post processors, jwt() can be used to establish a SecurityContext with a JwtAuthenticationToken.
mockMvc.perform(get("/")
.with(jwt(jwt -> jwt.claim("scope", "message:read"))));
For more information about the nohttp project see this blog post.
proxyBeanMethods=falseThis feature includes breaking changes to the classes AbstractSecurityWebSocketMessageBrokerConfigurer and GlobalMethodSecurityConfiguration.
In order to accomodate these changes, users extending AbstractSecurityWebSocketMessageBrokerConfigurer, who override the method inboundChannelSecurity will need to update the method signature to match the following.
@Bean
public ChannelSecurityInterceptor inboundChannelSecurity(
MessageSecurityMetadataSource messageSecurityMetadataSource) {
// implementation
}
Similarly, users extending GlobalMethodSecurityConfiguration who override the method methodSecurityInterceptor will need to update the method signature to match the following.
@Bean
public MethodInterceptor methodSecurityInterceptor(
MethodSecurityMetadataSource methodSecurityMetadataSource) {
// implementation
}