Skip to content

Commit 4632440

Browse files
committed
kobo sync disable session
1 parent fc56b12 commit 4632440

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

komga/src/main/kotlin/org/gotson/komga/infrastructure/security/SecurityConfiguration.kt

+11-7
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,17 @@ class SecurityConfiguration(
184184
cacheControl { disable() }
185185
}
186186

187-
sessionManagement {
188-
sessionCreationPolicy = SessionCreationPolicy.IF_REQUIRED
189-
sessionConcurrency {
190-
sessionRegistry = theSessionRegistry
191-
maximumSessions = -1
192-
}
193-
}
187+
// somehow the Kobo gets a Json issue when session sessionCreationPolicy is set to something else than STATELESS
188+
// despite the response being exactly the same
189+
// this happens when requesting /v1/user/profile
190+
// Kobo error: packetdump.warning) Invalid JSON script: QVariant(Invalid) "illegal value"
191+
// sessionManagement {
192+
// sessionCreationPolicy = SessionCreationPolicy.IF_REQUIRED
193+
// sessionConcurrency {
194+
// sessionRegistry = theSessionRegistry
195+
// maximumSessions = -1
196+
// }
197+
// }
194198

195199
addFilterBefore<AnonymousAuthenticationFilter>(koboAuthenticationFilter())
196200
}

0 commit comments

Comments
 (0)