Skip to content

Linux: authentication fails on Ubuntu 22.04 #159124

@jramsay

Description

@jramsay

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 and VS Code Extension Generator. I added the following code in activate:

Steps to Reproduce:

  1. 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.

Metadata

Metadata

Labels

authenticationIssues with the Authentication platformbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterlinuxIssues with VS Code on Linux

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions