We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 740023d commit 7c6e027Copy full SHA for 7c6e027
src/webserver/oidc.rs
@@ -334,6 +334,13 @@ fn set_auth_cookie(
334
335
let id_token_str = id_token.to_string();
336
log::trace!("Setting auth cookie: {SQLPAGE_AUTH_COOKIE_NAME}=\"{id_token_str}\"");
337
+ let id_token_size_kb = id_token_str.len() / 1024;
338
+ if id_token_size_kb > 4 {
339
+ log::warn!(
340
+ "The ID token cookie from the OIDC provider is {id_token_size_kb}kb. \
341
+ Large cookies can cause performance issues and may be rejected by browsers or by reverse proxies."
342
+ );
343
+ }
344
let cookie = Cookie::build(SQLPAGE_AUTH_COOKIE_NAME, id_token_str)
345
.secure(true)
346
.http_only(true)
0 commit comments