mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
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:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user