29,080 questions
Score of 0
1 answer
105 views
Duplicate call of FilterChainProxy with SpringSecurity, MVC and StringResponseBody
I encounter a strange behaviour in my Spring-Boot project (v4.0.6):
When I execute a Controller which returns ResponseEntity<StraingResponseBody> for writing NDJSON-Lines the FilterChainProxy of ...
Score of 1
1 answer
127 views
How does Spring Boot SecurityContextHolder works
I am quite struggling to understand how does even Spring
SecurityContextHolder
work internally I read too many articles but not able to understand it properly can anybody explain me how does it even ...
Score of 3
1 answer
138 views
Does @Order on a @Configuration class determine SecurityFilterChain precedence in Spring Security?
I'm trying to understand how Spring Security determines the order of multiple SecurityFilterChain beans.
The official documentation demonstrates applying @Order directly to the SecurityFilterChain ...
Score of 0
1 answer
94 views
Per-resource ACL with bitmask permissions in Spring — good approach? Scalable? What if I add roles later?
I'm building permission-based access control (ACL) in a Spring app. Resources are nested: User → Sheet → Transaction.
I want to store permissions as a bitmask instead of role rows. Is this a good ...
Score of 0
0 answers
117 views
"Cannot set the Security Context" console message
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 ...
Score of 1
0 answers
124 views
Why does OncePerRequestFilter execute on permitAll() endpoints even when added via addFilterBefore in a SecurityFilterChain?
I have a Spring Security configuration with a SecurityFilterChain that uses authorizeHttpRequests to permit certain endpoints like /user/register without authentication. However I also have a custom ...
Score of 0
1 answer
131 views
Is Spring Security 5.2.9.RELEASE affected by CVE-2026-22732?
Hello Spring Security team,
I have a question regarding CVE-2026-22732.
According to the advisory, the affected versions are listed as:
5.7.0 through 5.7.21
5.8.0 through 5.8.23
6.3.0 through 6.3....
Score of 0
0 answers
71 views
MFA in Spring Security and Spring Authserver's authorization grant type flow
I'm wondering if people have experience setting up an Spring Authserver that has MFA enabled using Spring Security 7.x.x. The goal is for a user to start the authorization grant type flow by accessing ...
Score of 0
1 answer
69 views
Regarding Implementation and understanding Filters in SpringBoot
I am a recently graduated student.I made a decision to become software developer,I know its weird because of current AI trend and impact on developers.But its not about that,I started learning java ...
Score of 0
1 answer
150 views
Configuring Spring Boot 3 (Spring MVC & Spring Security 7) for CORS public access (with credentials)
There are lots of good examples for how to configure Spring Boot for CORS online, but it seems to be very hard to find anything with an intersection of:
Using the APIs in Spring Boot 3 rather than ...
Score of 1
1 answer
156 views
How to have a CorsConfigurationSource in an Autoconfiguration in Spring Boot?
I am building a company-specific Spring Boot autoconfiguration. The code looks something like this:
@AutoConfiguration
@AutoConfigureBefore(SecurityAutoConfiguration.class)
@...
Score of 0
1 answer
147 views
Spring Boot OAuth2ResourceServer Excluding Paths (Cloudflare Turnstile)
I have a Spring Boot REST API written in Kotlin using Keycloak with Spring Security for authentication and authorization. I want to expose one endpoint publicly but protect it with Cloudflare ...
Score of 0
1 answer
70 views
Use OpenFeign to call microservices within an authenticated user session
I have a setup where I use Keycloak for user authentication. I use Spring Boot and Spring Security. My backend successfully performs the authentication with Keycloak using authorization_code grant and ...
Score of 0
0 answers
53 views
The sec tag cannot be displayed in thymeleaf?
I'm learning the spring security module.
Here is my security configuration class:
@Configuration
@EnableWebSecurity
public class SecurityConfiguration {
@Bean
public SecurityFilterChain ...
Score of 0
1 answer
152 views
Is Spring framework 6.x compatible with Spring Security 7.x?
Is Spring framework 6.x compatible with Spring Security 7.x? I need to upgrade a servlet-based web application to the latest version of Spring Security, but due to some dependency limitations I can't ...