Support Multiple Authentication Methods and Multi-Database Connections
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- azure, sql
调研方向
该 issue 未指定任何文件、测试或入口点。首先定位 server 的身份验证配置和数据库连接设置,然后定义所列环境变量如何选择凭据,以及如何配置多个连接;当所请求的身份验证方法和同时进行的数据库连接能够协同工作时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Problem Statement
Currently, the MCP server only supports a single authentication method at a time (either Azure AD or SQL Authentication), and
can only connect to one database per server instance.
Proposed Enhancements
- Support Multiple Authentication Methods
The server should automatically detect and use the appropriate authentication method based on environment variables:
- Azure AD Interactive Browser: If AZURE_AUTH_METHOD=interactive is set
- Azure AD Default Credential: If AZURE_AUTH_METHOD=default is set (for managed identities, service principals)
- Azure AD Service Principal: If AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET are set
- SQL Authentication: If SQL_USER and SQL_PASSWORD are set
- Windows Authentication: If WINDOWS_AUTH=true is set
- Support Multiple Database Connections
Allow configuring multiple SQL Server instances/databases simultaneously, enabling users to:
- Query across different databases
- Work with multiple Azure SQL servers
- Connect to both on-premises and cloud databases
Use Cases
- Development vs Production: Use different auth methods for local dev (SQL auth) vs Azure (Managed Identity)
- Multi-tenant applications: Connect to multiple customer databases
- Data migration/comparison: Query data across different SQL servers
- 主要语言
- HTML
- 星标
- 331
- 派生
- 208
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure-Samples/SQL-AI-samples 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 52/100
-
难度 3/5 1-2 天 新手友好度 38/100
Azure-Samples/SQL-AI-samples#90 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 30/100
-
难度 3/5 1-2 天 新手友好度 38/100
-
Local db 未关闭
难度 4/5 3-5 天 新手友好度 35/100
查看 Azure-Samples/SQL-AI-samples 的全部 Issue
相似的 Issue
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 76/100
AXERA-TECH/ax-llm#75 ·
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
gitbutlerapp/gitbutler#15998 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
sympozium-ai/sympozium#627 ·
-
clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security impact:ux-friction issue-rating: 🦞 diamond lobster P2
难度 2/5 1-3 小时 新手友好度 84/100