Setting username via OAuth on shared servers
Maintainer thường phản hồi trong vòng 2 ngày
@excalq đang làm issue này rồi.
Từ ngày 16/1/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
We have a use case of providing users with pre-configured database connections, which shared servers works well for. However, each user has a separate account in these databases, matching the email in their OAuth authentication flow (via Auth0). Their passwords are sourced externally (aws rds generate-db-auth-token) and short-lived, so we only need to set usernames, not passwords.
I was attempting to set a configuration to achieve this using servers.json, but it does not appear possible, looking at the codebase. We don't want a shared username, nor does Username: null cause the email/oauth-username-claim to be used, instead username is missing, and 'must be specified'.
The goal: Use the value of OAUTH2_USERNAME_CLAIM for Shared Servers instead of SharedUsername.
Related Issue: Shared Usernames: #6229
Describe alternatives you've considered
- Provisioning non-shared databases, per user: The servers.json is loaded into the SQLite DB once, as I understand, and removing it has undesired consequences, so this would be burdensome when adding new users.
Additional context
I am willing to contribute a PR with some changes in ServerModule.create_shared_server, but would like to open this discussion first.
- Ngôn ngữ chính
- Python
- Star
- 3.9k
- Fork
- 922
- Merge trung bình
- 2 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 33
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pgadmin-org/pgadmin4
-
Invalid syntax in sshtunnelCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
pgadmin-org/pgadmin4#10797 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pgadmin-org/pgadmin4#10426 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
pgadmin-org/pgadmin4#10796 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Schema Diff does not detect foreign keys that reference a different schemaCó thể đã có người làm @dpage đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 57/100
pgadmin-org/pgadmin4#10786 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
pgadmin-org/pgadmin4#10783 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của pgadmin-org/pgadmin4
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mohanraj00/entelos#200 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dead url in mise.tomlĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
-
sweep
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
bketelsen/truenas-mcp#77 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
sandbox-quantum/switch#2163 ·
Maintainer thường phản hồi trong vòng 1 ngày