mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #3870] Multiple domains support #3354
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#3354
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/3870
Author: @BlockListed
Created: 9/9/2023
Status: 🔄 Open
Base:
main← Head:multiple-domains-support📝 Commits (10+)
80d3c61add configuration support for multiple domains40edfa5implement mutli domain support for auth headers303eb30remove domain_paths hashmap, since it's no longer used17923c3replace domain with base_url0ebd877make admin work with multi-domains2c7b739make fido app-id.json work with multi-domainse313745make domain protocol validation work with multi-domains0d7e678make mail work with multi-domains5462b97make cors work with multi-domainsf82a142get domain and origin with single extractor📊 Changes
17 files changed (+354 additions, -167 deletions)
View changed files
📝
src/api/admin.rs(+14 -9)📝
src/api/core/accounts.rs(+11 -9)📝
src/api/core/ciphers.rs(+11 -11)📝
src/api/core/emergency_access.rs(+1 -1)📝
src/api/core/mod.rs(+2 -1)📝
src/api/core/organizations.rs(+5 -5)📝
src/api/core/public.rs(+5 -3)📝
src/api/core/sends.rs(+3 -3)📝
src/api/core/two_factor/webauthn.rs(+45 -25)📝
src/api/identity.rs(+30 -9)📝
src/api/web.rs(+6 -3)📝
src/auth.rs(+84 -39)📝
src/config.rs(+89 -15)📝
src/db/models/attachment.rs(+4 -4)📝
src/db/models/cipher.rs(+3 -3)📝
src/mail.rs(+28 -24)📝
src/util.rs(+13 -3)📄 Description
Fixes #2690
Very WIP PR, I just want some feedback about my approach for now.
I am planning to go with the allowed domains approach.
Overview:
We create 2 Hashmaps, which map the Host header to either Domain or Origin.Limitations:
Future:
- Change JWT system to create tokens, which work for a single domain.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.