How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

"Cannot set the Security Context" console message

calendar_today June 16, 2026 person haoz domain spring-boot

During obtaining the authentication token the following message appears in the Spring Boot application console. Cannot set the Security Context I think it’s important that this message doesn’t include any Java class path, date, or time, as if its source wasn’t a logger used in a Spring Boot application. To obtain the token, I use the following methods in the controller and service: @RequiredArgsConstructor @RestController @CrossOrigin @DependsOn({JwtPublicAuthenticationService.BEAN_NAME}) public class JwtPublicAuthenticationController { private final JwtPublicAuthenticationService jwtPublicAut

open_in_new Read original post