758 questions
1
vote
2
answers
62
views
Spring Boot 4 tests not creating session cookie (springSessionRepositoryFilter missing from filter chain)
I am doing something like the following in a Spring Boot test.
@Test
void givenAuthenticated_whenDeleteSession_return204() throws Exception {
final String manager = ORG_MANAGER_EMAIL;
...
0
votes
1
answer
87
views
Spring Boot session not saving to SPRING_SESSION table
Spring seems to be creating a session, and saving my session variable in memory. But when I check the SPRING_SESSION (and SPRING_SESSION_ATTRIBUTES) table(s), there is never an entry.
pom.xml ...
0
votes
0
answers
67
views
Vaadin 23 Flow session not expiring when Spring Session JDBC session expires
I have a multi-project setup with a Spring back-end and a Vaadin 23 Flow front-end. I'm trying to synchronize the session lifecycles so that when the back-end session expires, the Vaadin UI correctly ...
1
vote
0
answers
80
views
Share Spring Session between Spring MVC and WebFlux apps via Redis
I'm trying to share the HTTP session between a Spring MVC (Servlet-based) application and a Spring WebFlux application using Spring Session backed by Redis.
What I'm trying to achieve:
A user ...
0
votes
0
answers
116
views
Spring Boot session cookie not being sent in Chrome, but works in Firefox (SameSite issue?)
I'm building a full-stack application with:
nextjs: job-portal
springboot: backend-api
I'm using session-based authentication in spring boot. After logging in (via standard username/password), the ...
1
vote
1
answer
77
views
Vaadin23 app keeps refreshing repeatedly when using Spring Session JDBC
I'm building a Vaadin 23 + Spring Boot 2.7 application and trying to integrate Spring Session JDBC to expire sessions after 1 minute of inactivity.
Problem:
When I start the app, the browser (...
0
votes
1
answer
97
views
OAuth2Authentication token serializing by spring session with redis
I am using spring session for redis for my oauth2 login. I have implemented a custom principal.
@Data
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public final class ...
0
votes
0
answers
57
views
Spring Session Redis GraalVM Serialization error
I have a simple Spring Boot application, which uses Oauth2 client and Spring Session Redis. It has default setup in application.yml:
spring:
session:
store-type: redis
redis:
namespace:...
0
votes
0
answers
74
views
How to handle when redis keyspace notification is delayed when using Spring session with it?
In my application im using spring session with redis as the data store. We track if a user is logged in/not based on the Session Destroyed event. Whenever we receive this event we will mark that ...
0
votes
0
answers
44
views
How to get window/session based user context object in Filter class to setup inital user data in Springboot
I have a Usercontext Bean which is session based bean. UserContext has reference to User cache field which is window based.
We have windowscope Bean which has userContext reference.
I want to get User ...
0
votes
0
answers
58
views
spring boot + spring session jdbc multiple data sources @SpringSessionDataSource is invalid
I found a problem, but I don't know how to solve it. If the data source is switched in the interceptor, the session will be executed with the context, resulting in the inability to find the session ...
1
vote
1
answer
374
views
How can I use @ServiceConnection with Redis Testcontainers for Spring Session Redis?
My application involves using Spring Session Redis to handle authenticated sessions across the application.
Spring Session Redis is configured as-per the docs.
@Configuration
@EnableRedisHttpSession
...
1
vote
1
answer
136
views
Session not persisted between Spring Boot (Spring Session + MySQL) and Angular frontend
I am using Spring Boot 2.7.18 with Spring Session and MySQL to store sessions in the database, and my frontend is built with Angular. After logging in and being redirected back to my Angular app, the ...
0
votes
0
answers
102
views
Force-logout from Spring Webflux application after session timeout?
So I have a Spring boot app that runs on two services, one is a gateway with spring-cloud-gateway, webflux and spring-session, and the other is a resource server. They are authenticated with OAuth2 ...
0
votes
0
answers
104
views
Spring Security with Spring Session can't correctly find the session after application restart
I'm implementing Spring Security with Spring Session for my cloud based application.
Everything works correctly, the integration with Spring Session as well. But if I restart my application (For ...