Skip to content

Commit

Permalink
kobo sync disable session
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Aug 16, 2024
1 parent fc56b12 commit 4632440
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,17 @@ class SecurityConfiguration(
cacheControl { disable() }
}

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

addFilterBefore<AnonymousAuthenticationFilter>(koboAuthenticationFilter())
}
Expand Down

0 comments on commit 4632440

Please sign in to comment.