[PR #6676] [MERGED] improve sso callback path #3792

Closed
opened 2026-02-05 05:44:54 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/6676
Author: @stefan0xC
Created: 1/6/2026
Status: Merged
Merged: 1/6/2026
Merged by: @BlackDex

Base: mainHead: improve-sso-callback-path


📝 Commits (2)

  • 8f1a80b normalize base_url for sso_callback_path
  • 7fdb4d4 clean url when embedding images

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 src/config.rs (+6 -2)

📄 Description

Currently we remove a trailing slash after making the config:
9f1df42259/src/config.rs (L309)

This means that the generated sso_callback_path is not yet normalized, which leads to some issues (e.g. https://github.com/dani-garcia/vaultwarden/issues/6180 or https://github.com/dani-garcia/vaultwarden/issues/6601).

This change would fix that by applying the same normalization to the generated URL.


🔄 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/dani-garcia/vaultwarden/pull/6676 **Author:** [@stefan0xC](https://github.com/stefan0xC) **Created:** 1/6/2026 **Status:** ✅ Merged **Merged:** 1/6/2026 **Merged by:** [@BlackDex](https://github.com/BlackDex) **Base:** `main` ← **Head:** `improve-sso-callback-path` --- ### 📝 Commits (2) - [`8f1a80b`](https://github.com/dani-garcia/vaultwarden/commit/8f1a80be8c0a8493fa9163afefd1f1981e4b75e9) normalize base_url for sso_callback_path - [`7fdb4d4`](https://github.com/dani-garcia/vaultwarden/commit/7fdb4d433a86be7b7a25ae69043768bc03c079d4) clean url when embedding images ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/config.rs` (+6 -2) </details> ### 📄 Description Currently we remove a trailing slash after making the config: https://github.com/dani-garcia/vaultwarden/blob/9f1df422595cdfb04b8aea6968ae52a434887abc/src/config.rs#L309 This means that the generated `sso_callback_path` is not yet normalized, which leads to some issues (e.g. https://github.com/dani-garcia/vaultwarden/issues/6180 or https://github.com/dani-garcia/vaultwarden/issues/6601). This change would fix that by applying the same normalization to the generated URL. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 05:44:54 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#3792