Skip to content

Commit e00533c

Browse files
JIWONKIMSclaude
andcommitted
fix(deps): Remove spring-session-data-redis dependency
Spring Session conflicts with JWT-based stateless authentication. The SessionRepositoryFilter was attempting to save sessions to Redis even with SessionCreationPolicy.STATELESS, causing IllegalStateException during OAuth2 login. Changes: - Remove spring-session-data-redis dependency - Keep spring-boot-starter-data-redis for caching only - Redis now used exclusively for: * Refresh token storage * Access token blacklist * General caching Fixes: Session was invalidated error after OAuth2 login 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 299199e commit e00533c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ dependencies {
5858
implementation("org.springframework.boot:spring-boot-starter-websocket")
5959
implementation("org.springframework.boot:spring-boot-starter-amqp")
6060

61-
// 레디스 - 캐싱 세션 관리
61+
// 레디스 - 캐싱 전용 (JWT 기반 인증으로 세션 불필요)
6262
implementation("org.springframework.boot:spring-boot-starter-data-redis")
63-
implementation("org.springframework.session:spring-session-data-redis")
6463

6564
// API 문서화 - Swagger UI
6665
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0")

0 commit comments

Comments
 (0)