on-internet
← Community

Spring Security: Failed to authorize filter invocation

Stack Overflow ·

My Spring Boot application is returning a 403 status code (forbidden) when I call a GET request in my AdminControllor I am trying to blacklist URLs which have "/admin/**" except for those users who have the authority "ADMIN" in my database. I have disabled csrf which seems to be the most common issue for 403 forbidden. The problem seems to relate (see debug logs) to this: Failed to authorize filter invocation [GET /admin/allusers] with attributes [hasAuthority('ADMIN')] Logs 2022-09-08 13:56:20.018 DEBUG 21328 --- [nio-8080-exec-2] o.s.security.web.FilterChainProxy : Securing GET /admin/alluse

Comments

Sign in or sign up to comment and upvote.

No comments yet.