Skip to content

Commit 8dc491a

Browse files
committed
Revert to using scopes[1] now this is no longer being normalized to lowercase
1 parent adcf832 commit 8dc491a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ async function resolvePassword(serverSpec, ignoreUnauthenticated = false): Promi
299299
}
300300
if (session) {
301301
// If original spec lacked username use the one obtained from the user by the authprovider (exact case)
302-
serverSpec.username = serverSpec.username || session.account.id.split("/").slice(1).join("/");
302+
serverSpec.username = serverSpec.username || session.scopes[1];
303303
serverSpec.password = session.accessToken;
304304
}
305305
}

0 commit comments

Comments
 (0)