757 questions
Best practices
0
votes
0
replies
78
views
SpringBoot solution for session metrics
We have noticed that the following Tomcat session metrics are no longer being tracked after adding the org.springframework.session:spring-session-data-redis dependency :
...
-1
votes
0
answers
89
views
ID Token doesn't contain SID claim if I have multiple instance of Spring Authorization Server
I have 2 instances of Spring Authorization Server (SAS), running locally behind nginx. My SAS is using:
Spring Session JDBC to save session to oracle db
JdbcOauth2AuthorizationService to save ...
Advice
2
votes
4
replies
94
views
What's the difference between server.servlet.session.timeout, server.servlet.session.max-age and spring.session.timeout?
I followed this tutorial to get my authentication session up and running. However, I am unsure of the differences between spring.session.timeout, server.servlet.session.timeout and server.servlet....
Best practices
0
votes
1
replies
33
views
What's the proper way to use the spring.session.jdbc.initialize-schema property?
I'm using a spring application that uses spring sessions. The application auto-scales based on the traffic (fairly standard approach), so it starts up quite often (a few thousand times per week).
I'm ...
1
vote
2
answers
144
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
146
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
78
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
88
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
149
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
89
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
131
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
72
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
46
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 ...
1
vote
1
answer
449
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
149
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 ...