-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux: authentication fails on Ubuntu 22.04 #159124
Comments
I'm having a similar issue when trying to sign in with Github through the live share sign in command, which vscode gives this error message And the github authentication log seems to suggest it couldn't find any session.
I'm also on Ubuntu 22.04, and I'm suspecting upgrading to 22.04 causes this issue as it did with other issues like this one microsoft/live-share#4662 |
can you let me know if this works: $ npx @emacs-grammarly/keytar-cli set-pass -s service1 -a testuser -p xxxxxx
Successfully set the creds for testuser@service1!
$ npx keytar-cli find-creds -s service1
Here are the creds for service1 [ { account: 'testuser', password: 'password' } ] VS Code uses keytar in order to write to the keychain. This 3rd party package wraps that library in a thin CLI for easy testing. I wanna double check that |
@TylerLeonhardt it works for me |
Thanks @eddieyu1998! I'm able to successfully retrieve the session from vscode.authentication.getSession, and start a Live Share session, after installing libssl1.1 and restarting the Ubuntu 22.04 VM. |
My suspicion is that this is happening in the library we use to encrypt secrets. We have been using OpenSSL 1.1.* for the longest time... but it seems Ubuntu 22.04 has removed libssl1.1 which... I would guess... is a dependency that OpenSSL 1.1.* depends on. My thinking is that we could:
@deepak1556 any thoughts here? |
@TylerLeonhardt I have verified the $ ELECTRON_RUN_AS_NODE=1 ~/Downloads/electron-v19.0.12-linux-x64/electron ./node_modules/.bin/mocha test/test.js
Encrypt
✓ should round trip a value
✓ should round trip a value with a space in it
✓ performs multiple encryption/decryptions in a row
✓ should generate serialNumber from signed executable only on windows
✓ should reject with error for invalid decrypt string
5 passing (10ms)
$ ldconfig -p | grep libssl
libssl3.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libssl3.so
libssl.so.3 (libc6,x86-64) => /lib/x86_64-linux-gnu/libssl.so.3
$ readelf -d /snap/code/106/usr/share/code/resources/app/node_modules.asar.unpacked/vscode-encrypt/build/Release/vscode-encrypt-native.node | grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6] |
I also did the same set of tests for |
I revisited this today to repro with the steps from @jramsay. I am on Ubuntu 22.04 with wayland session and using snap install of VSCode. I was able to get the session from |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Does this issue occur when all extensions are disabled?: Yes
Version: 1.70.2
Commit: e4503b3
Date: 2022-08-16T05:36:25.715Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Linux x64 5.15.0-27-generic snap
In the course of testing the Live Share agentless extension on Ubuntu 22.04 LTS noticed that our extension is getting stuck on signing in.
Created a basic extension using
Yeoman
andVS Code Extension Generator
. I added the following code in activate:Steps to Reproduce:
Create a basic extension and add the following:
let session: any;
try {
console.log('before getSession');
session = await vscode.authentication.getSession('github', ['read:user', 'user:email'], {createIfNone: true});
} catch(e) {
console.log('error');
}
console.log(session.accessToken);
On Linux, getSession appears to complete the full handshake with GitHub provider but it never returns a session. If I look in the Activity Bar > Accounts my GitHub account does appear to be signed in correctly.
If I do the same test on Windows a session is returned after the auth handshake.
The text was updated successfully, but these errors were encountered: