Add support for Entra ID v1.0 authorization servers in VSCode MCP Client (#262603)

* Initial plan

* Add v1.0 Entra ID support and optimize MCP discovery for Microsoft endpoints

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

* Add tests for v1.0 authorization server support

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

* Address code review feedback: remove redundant tests and Microsoft-specific logic

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>
This commit is contained in:
Copilot
2025-08-29 12:21:53 +02:00
committed by GitHub
parent d434e5bb60
commit f14ccecb1e
4 changed files with 9 additions and 0 deletions

View File

@@ -102,4 +102,10 @@ suite('ScopeData', () => {
const scopeData = new ScopeData(['custom_scope', 'VSCODE_TENANT:scope_tenant'], undefined, authorizationServer);
assert.strictEqual(scopeData.tenant, 'url_tenant');
});
test('should extract tenant from v1.0 authorization server URL path', () => {
const authorizationServer = Uri.parse('https://login.microsoftonline.com/tenant123');
const scopeData = new ScopeData(['custom_scope'], undefined, authorizationServer);
assert.strictEqual(scopeData.tenant, 'tenant123');
});
});