Spring security. Cannot permit request in custom fiter
问题 I need to implement authorization with a specific header (say "sessionId") and secure all uri's except one. I extended OncePerRequestFilter and implemented custom AuthenticationProvider to check if sessionId is valid (as well as custom Token class etc). How it works now: for any uri it immediately jumps to AuthSessionAuthenticationProvider 's authenticate method right after AuthSessionFilter is applied and returns 403 if header sessionId isn't specified. But I want some uri's to allow access