When users configure the SecurityFilterChain they can opt to use authorizeHttpRequests or authorizeRequests. Using both configurations does not make sense since they do the same thing.
Using authorizeHttpRequests is preferable now, since authorizeRequests is gonna be deprecated.
We should ensure that only one of them is configured inside the filter chain.
When users configure the
SecurityFilterChainthey can opt to useauthorizeHttpRequestsorauthorizeRequests. Using both configurations does not make sense since they do the same thing.Using
authorizeHttpRequestsis preferable now, sinceauthorizeRequestsis gonna be deprecated.We should ensure that only one of them is configured inside the filter chain.