Setting username via OAuth on shared servers
维护者通常 2 天内回复
@excalq 已经在做这个了。
开始于 2026年1月16日。
评估
这个 Issue 还没有评估数据。
描述
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.
- 主要语言
- Python
- 星标
- 3.9k
- 派生
- 922
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 33
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pgadmin-org/pgadmin4 的其他 Issue
-
Invalid syntax in sshtunnel可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭Bug
难度 2/5 1-3 小时 新手友好度 62/100
pgadmin-org/pgadmin4#10797 ·
维护者通常 2 天内回复
-
Feature
难度 2/5 1-3 小时 新手友好度 78/100
pgadmin-org/pgadmin4#10426 · 3 条评论 · 1 个 reaction ·
维护者通常 2 天内回复
-
Bug
难度 4/5 3-5 天 新手友好度 25/100
pgadmin-org/pgadmin4#10796 · 1 条评论 ·
维护者通常 2 天内回复
-
Schema Diff does not detect foreign keys that reference a different schema可能已有人在做 @dpage 今天认领。 未关闭
难度 4/5 3-5 天 新手友好度 57/100
pgadmin-org/pgadmin4#10786 · 已指派 1 人 ·
维护者通常 2 天内回复
-
Bug
难度 4/5 3-5 天 新手友好度 55/100
pgadmin-org/pgadmin4#10783 ·
维护者通常 2 天内回复
查看 pgadmin-org/pgadmin4 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
mohanraj00/entelos#200 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 68/100
-
sweep
难度 2/5 1-3 小时 新手友好度 85/100
bketelsen/truenas-mcp#77 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
sandbox-quantum/switch#2163 ·
维护者通常 1 天内回复