open-webui/backend/open_webui/utils
Antti Pyykkönen 412923dc91 feat: separate cookie settings between session & auth cookies
Introducing two new env config options to control cookies settings regarding
authentication. These values are taken into use when setting 'token' and 'oauth_id_token'.
To maintain backwards compatibility, the original session cookie values are used as
fallback.

Separation is done to prevent issues with the session cookie. When the config value was
set as 'strict', the oauth flow was broken (since the session cookie was not provided
after the callback).

Providing a separate config for auth & session cookies allows us to keep the 'strict'
settings for auth related cookies, while also allowing the session cookie to behave as
intended (e.g., by configuring it as 'lax').

The original config was added in commit #af4f8aa. However a later commit #a2e889c reused
this config option for other type of cookies, which was not the original intent.
2025-01-23 16:16:50 +02:00
..
images chore: format 2024-12-17 13:51:29 -08:00
access_control.py enh/refac: permissions 2025-01-15 23:01:43 -08:00
auth.py fix: API_KEY_ALLOWED_ENDPOINTS 2025-01-03 13:08:21 -08:00
chat.py fix: actions 2025-01-03 21:31:24 -08:00
middleware.py refac 2025-01-22 12:49:29 -08:00
misc.py refac 2024-12-24 23:45:21 -07:00
models.py refac 2024-12-21 09:59:12 -07:00
oauth.py feat: separate cookie settings between session & auth cookies 2025-01-23 16:16:50 +02:00
payload.py enh: reasoning_effort param support for openai 2025-01-22 12:07:04 -08:00
pdf_generator.py solves the lack of line breaks in chat download as pdf #8405 2025-01-08 16:49:53 +01:00
plugin.py wip 2024-12-10 00:54:13 -08:00
response.py fix: usage stats 2024-12-30 15:52:07 -08:00
security_headers.py chore: format 2024-11-30 23:36:30 -08:00
task.py enh: image prompt enhancer 2025-01-16 00:06:37 -08:00
tools.py wip 2024-12-12 20:22:17 -08:00
webhook.py enh: channel notification 2024-12-25 00:53:25 -07:00