open-webui/backend/open_webui
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
..
data
internal Merge branch 'open-webui:main' into main 2025-01-13 08:28:13 +01:00
migrations
models refac: access controls 2025-01-20 23:20:47 -08:00
retrieval fix: bing search 2025-01-20 22:52:19 -08:00
routers feat: separate cookie settings between session & auth cookies 2025-01-23 16:16:50 +02:00
socket fix: Remove unnecessary decode statement 2025-01-17 13:43:56 -08:00
static refac: favicon 2025-01-22 11:27:03 -08:00
storage chore: format backend 2025-01-21 19:33:33 -08:00
test chore: format backend 2025-01-21 19:33:33 -08:00
utils feat: separate cookie settings between session & auth cookies 2025-01-23 16:16:50 +02:00
__init__.py refac 2025-01-13 00:34:15 -08:00
alembic.ini
config.py chore: format backend 2025-01-21 19:33:33 -08:00
constants.py enh: image prompt enhancer 2025-01-16 00:06:37 -08:00
env.py feat: separate cookie settings between session & auth cookies 2025-01-23 16:16:50 +02:00
functions.py
main.py refac 2025-01-16 00:13:02 -08:00
tasks.py