Skip to content

Commit 965f2bb

Browse files
committed
exclude password from serverForUri API response
1 parent 84a6c22 commit 965f2bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/extension.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,12 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
958958
serverForUri(uri: vscode.Uri): any {
959959
const { apiTarget } = connectionTarget(uri);
960960
const api = new AtelierAPI(apiTarget);
961+
962+
// We explicitly no longer expose the password.
963+
// API client extensions can use Server Manager 3's authentication provider to get this,
964+
// which will require user consent.
965+
api.config.password = undefined;
966+
961967
const {
962968
serverName,
963969
active,

0 commit comments

Comments
 (0)