Skip to content

[Bug]: code-server 4.1.0 change github auth URL, breaking github copilot support. #4998

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

Closed
3 tasks done
yokowasis opened this issue Mar 19, 2022 · 3 comments
Closed
3 tasks done
Labels
waiting-for-info Waiting for more information from submitter

Comments

@yokowasis
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Firefox
  • Local OS: Windows
  • Remote OS: Ubuntu
  • Remote Architecture: amd64
  • code-server --version: 4.1.0

Steps to Reproduce

  1. open code server
  2. install copilot
  3. auth with github

Expected

4.0.2.mp4

This is the video of code-server v4.0.2

Old auth url works fine by extracting the state, and put it into

https://vscode-auth.github.com/authorize/?callbackUri=vscode://vscode.github-authentication/did-authenticate&scope=repo&state=${state}&responseType=code

as stated in #4363

Actual

New version of auth page comes up, github copilot can't find token, assuming I don't have access to github copilot.

Logs

No response

Screenshot/Video

4.1.0.mp4

Does this issue happen in VS Code?

  • I cannot reproduce this in VS Code.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

It looks like new version contain new url for authing with github. I would prefer to use old auth url (4.0.2) since it works fine with github copilot and others.

@yokowasis yokowasis added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Mar 19, 2022
@jsjoeio
Copy link
Contributor

jsjoeio commented Mar 23, 2022

I think due to licensing reasons, Copilot cannot be used with code-server. I can't find it on Open VSX.

Is there another extension that I can use to reproduce this?

@jsjoeio jsjoeio added waiting-for-info Waiting for more information from submitter and removed bug Something isn't working triage This issue needs to be triaged by a maintainer labels Mar 23, 2022
@yokowasis
Copy link
Author

yokowasis commented Mar 24, 2022

I think due to licensing reasons, Copilot cannot be used with code-server. I can't find it on Open VSX.

Is there another extension that I can use to reproduce this?

Actually it can. And a lot of people including me can make it work, by installing the extension manually (on code-server v4.0.2). Refer to #4363. You can always download copilot from the microsoft marketplace and install it manually.

Can't we make an option for code-server to use old auth url instead of the new one ?

@yokowasis
Copy link
Author

code-server 4.2.0 use a new kind of auth (8 alphanumeric). copilot can auth fine, with the new code-server 4.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-info Waiting for more information from submitter
Projects
None yet
Development

No branches or pull requests

2 participants