Unable to Use hasIpAddress()
Method After Migrating to authorizeHttpRequests()
in Spring Security 6
#13474
Labels
hasIpAddress()
Method After Migrating to authorizeHttpRequests()
in Spring Security 6
#13474
Describe the bug
After migrating to Spring Security 6 and replacing the deprecated
authorizeRequests(...)
method withauthorizeHttpRequests(...)
, thehasIpAddress()
method is no longer accessible, resulting in a compilation error.To Reproduce
Steps to reproduce the behavior:
authorizeRequests(...)
withauthorizeHttpRequests(...)
in the code.hasIpAddress()
method withauthorizeHttpRequests(...)
.Expected behavior
I expected to be able to use the
hasIpAddress()
method within theauthorizeHttpRequests(...)
configuration, without encountering any compilation errors.Sample
The text was updated successfully, but these errors were encountered: