<How to properly register OncePerRequestFilter to ...
# stackoverflow
u
How to properly register OncePerRequestFilter to check tokens with spring-security 5.7? I am trying to secure a simple webservice with an AuthController providing a login and refresh endpoint. Hence auth/** should be open and all other apis should only be accessible with a valid token. The auth endpoints work, however I have some troubles with the proper security configuration. I implemented the following JwtTokenFilter: class JwtTokenFilter() : OncePerRequestFilter() { @Autowired private lateinit var jwtTokenService: JwtTokenService @Autowired private lateinit...