open-webui/backend/open_webui/utils
sasidhar 6860dec08f fix: properly sign out user on trusted email mismatch
When using trusted email header authentication, properly sign out the user
when the logged-in user's email doesn't match the trusted email header value.
This ensures proper session cleanup when the OAuth server changes the
authenticated user.

- Add response parameter to get_current_user function
- Delete JWT token cookie on email mismatch
- Delete OAuth token cookie if present
- Force re-authentication with 401 error
2025-06-08 14:26:55 +05:30
..
images
telemetry
access_control.py
audit.py enh: failed login attempts audit log 2025-04-23 00:06:44 +09:00
auth.py fix: properly sign out user on trusted email mismatch 2025-06-08 14:26:55 +05:30
chat.py Prevent duplicate function module loads with caching helper and refactor 2025-05-27 18:08:58 +09:00
code_interpreter.py chore: format 2025-05-10 19:00:01 +04:00
filter.py refac 2025-05-28 01:41:49 +04:00
logger.py
middleware.py refac: better memory error handling 2025-05-30 00:12:28 +04:00
misc.py refac 2025-05-28 01:34:53 +04:00
models.py chore: format 2025-05-29 02:36:33 +04:00
oauth.py refac: oauth redirect url to use WEBUI_URL 2025-05-23 01:03:28 +04:00
payload.py enh: better custom param handling 2025-05-29 23:32:14 +04:00
pdf_generator.py
plugin.py refac 2025-05-28 01:42:42 +04:00
redis.py chore: format 2025-04-12 16:35:11 -07:00
response.py
security_headers.py
task.py fix: local/external models 2025-05-23 02:48:31 +04:00
tools.py enh: allow custom openapi json url 2025-05-27 00:20:47 +04:00
webhook.py