We should deprecate authorization logic that uses FilterInvocation in favor of using RequestAuthorizationContext. A few examples:
SecurityExpressionHandler<FilterInvocation>in favor ofSecurityExpressionHandler<RequestAuthorizationContext>FilterInvocationExpressionRoot(might change toHttpServletRequestExpressionRoot) in favor ofWebSecurityExpressionRootDefaultWebSecurityExpressionHandlerin favor ofDefaultHttpSecurityExpressionHandler
Related gh-17673
Comment From: therepanic
Hi, @rwinch. Can you assign me to this issue?
Comment From: rwinch
Thanks @therepanic! Yes please go ahead and do it. Please ensure to remove the deprecated usage within Spring Security in a passive way (e.g. adapt classes that use SecurityExpressionHandler<FilterInvocation> to use SecurityExpressionHandler<RequestAuthorizationContext>)