[PR #12592] [MERGED] feat: Redirect on sign out #46030

Closed
opened 2026-04-29 20:39:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/12592
Author: @jarrod-lowe
Created: 4/8/2025
Status: Merged
Merged: 4/19/2025
Merged by: @tjbck

Base: devHead: main


📝 Commits (6)

  • b446598 Environment variable to redirect on logout
  • a8bbaa6 Merge branch 'dev' into main
  • 8b0e565 Merge pull request #12715 from open-webui/dev
  • aca37f5 Merge pull request #12807 from open-webui/dev
  • 07d8460 Merge pull request #12809 from open-webui/dev
  • dfe50b4 Merge branch 'open-webui:main' into main

📊 Changes

3 files changed (+12 additions, -0 deletions)

View changed files

📝 backend/open_webui/env.py (+3 -0)
📝 backend/open_webui/main.py (+2 -0)
📝 backend/open_webui/routers/auths.py (+7 -0)

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Discussion 12589

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources? - See https://github.com/open-webui/docs/pull/479
  • [n/a] Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • [can't run] Testing: Have you written and run sufficient tests to validate the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

Adds the ability to set a redirect URL on manual signout. This is useful when using the trusted header auth, to allow signing out of the authentication provider.

Added

  • Added Environment variable SIGNOUT_REDIRECT_URI to set URL to redirect to on manual signou

Changed

Deprecated

Removed

Fixed

Security

Breaking Changes


Additional Information

  • Documentation update: https://github.com/open-webui/docs/pull/479
  • I can't figure out how to run the existing python tests, in order to be able to add my new one - if I could get a pointer on what command I need to run, I'll add a test

Screenshots or Videos

  • n/a

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/12592 **Author:** [@jarrod-lowe](https://github.com/jarrod-lowe) **Created:** 4/8/2025 **Status:** ✅ Merged **Merged:** 4/19/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `main` --- ### 📝 Commits (6) - [`b446598`](https://github.com/open-webui/open-webui/commit/b4465987f95fe062ef1df3c510ccd9631f58db0e) Environment variable to redirect on logout - [`a8bbaa6`](https://github.com/open-webui/open-webui/commit/a8bbaa61bd048a5d30273ad15840138a7ca479d2) Merge branch 'dev' into main - [`8b0e565`](https://github.com/open-webui/open-webui/commit/8b0e565e2c8a8f47f54ef039eb132ddb756e83a6) Merge pull request #12715 from open-webui/dev - [`aca37f5`](https://github.com/open-webui/open-webui/commit/aca37f592d0dedea2529fcb4304e4ff39e0c1219) Merge pull request #12807 from open-webui/dev - [`07d8460`](https://github.com/open-webui/open-webui/commit/07d8460126a686de9a99e2662d06106e22c3f6b6) Merge pull request #12809 from open-webui/dev - [`dfe50b4`](https://github.com/open-webui/open-webui/commit/dfe50b4e565ac52bfc9bb253a57238aea37be10d) Merge branch 'open-webui:main' into main ### 📊 Changes **3 files changed** (+12 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/env.py` (+3 -0) 📝 `backend/open_webui/main.py` (+2 -0) 📝 `backend/open_webui/routers/auths.py` (+7 -0) </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. Discussion [12589](https://github.com/open-webui/open-webui/discussions/12589) **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [x] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - See https://github.com/open-webui/docs/pull/479 - [n/a] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [can't run] **Testing:** Have you written and run sufficient tests to validate the changes? - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description Adds the ability to set a redirect URL on manual signout. This is useful when using the trusted header auth, to allow signing out of the authentication provider. ### Added - Added Environment variable SIGNOUT_REDIRECT_URI to set URL to redirect to on manual signou ### Changed ### Deprecated ### Removed ### Fixed ### Security ### Breaking Changes --- ### Additional Information - Documentation update: https://github.com/open-webui/docs/pull/479 - I can't figure out how to run the existing python tests, in order to be able to add my new one - if I could get a pointer on what command I need to run, I'll add a test ### Screenshots or Videos - n/a --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 20:39:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#46030