Improve connector reload authentication UX (#2370)

Keep Azure tokens in memory and preserve linked namespace context across extension reloads.

Co-authored-by: Alex Yang (DevDiv) <yangalex@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Alex Yang [MSFT]
2026-07-23 10:51:00 -07:00
committed by GitHub
parent 26a363779a
commit c0869f6231
10 changed files with 110 additions and 171 deletions
+3 -1
View File
@@ -561,7 +561,9 @@ async function handleRequest(req, res, instanceId, serverEntry) {
} catch (err) {
res.setHeader("Content-Type", "text/html; charset=utf-8");
if (isAuthenticationRequiredError(err)) {
res.end(renderSetupHtml([], "", serverEntry.token));
res.end(renderSetupHtml([], "", serverEntry.token, {
linkedNamespace: config.gatewayName,
}));
} else {
res.end(renderSetupHtml(
[],