Updated Java from 14.0.2 to Java 21 and now spring security is returning 401 on all endpoints or 403
I’m facing an issue with my Spring Security configuration in a Spring Boot application. My WebSecurityConfig class is set up to handle various endpoint permissions and configurations. The problem seems related to either a circular dependency or an issue with bean initialization.
Custom token authentication in spring security 6
I have an http basic custom authentication provider. I need to add a bearer token verifier in addition to it. Heres the code I have so far: