localCopilot icon indicating copy to clipboard operation
localCopilot copied to clipboard

GitHub authentication

Open mani144 opened this issue 1 year ago • 7 comments

Greetings Faris ,

mid there a way to bypass the authentication process for GitHub Copilot, because the plug-in that is in vscode is not fully offline , but needs authentication in order to make your middleware works.

thanks a lot

mani144 avatar Sep 04 '23 05:09 mani144

that's an interesting problem, I was not aware of this, I always was authenticated when trying it out. Could you somehow find out what the exact authentication call is? maybe using wireshark or tcpdump?

FarisHijazi avatar Sep 04 '23 05:09 FarisHijazi

what you can do now is use a different frontend like fauxpilot frontend or code-clippy

  • https://github.com/FarisHijazi/gpt-code-clippy
  • https://github.com/Venthe/vscode-fauxpilot

FarisHijazi avatar Sep 04 '23 05:09 FarisHijazi

that's an interesting problem, I was not aware of this, I always was authenticated when trying it out. Could you somehow find out what the exact authentication call is? maybe using wireshark or tcpdump?

i will check it once i have time , i think the best solution currently is to create opensource VSIX that will do Github Copilot work without the need for too many dependencies. for example fauxpilot will require fauxpilot server ( which runs on docker and requires nvidia ) which limits the customization of a backend.

mani144 avatar Sep 04 '23 06:09 mani144

I think fauxpilot frontend can run on oobabooga. I'm not a fan of fauxpilot server

FarisHijazi avatar Sep 04 '23 06:09 FarisHijazi

I had a similar issue with the github copilot extension failing to initialize the extension due to being unable to retrieve a token from github for the copilot subscription.

joshfranzen avatar Oct 18 '23 19:10 joshfranzen

Could you guys run wireshark or tcpdump to capture the authentication request, maybe we could make an endpoint to emulate that and accept the auth

FarisHijazi avatar Oct 19 '23 06:10 FarisHijazi

Just found a similar issue on the FauxPilot repo:

https://github.com/fauxpilot/fauxpilot/issues/1#issuecomment-1264282796

Edit: Here's a step-by-step:

https://github.com/fauxpilot/fauxpilot/issues/1#issuecomment-1445189438

joshfranzen avatar Oct 20 '23 20:10 joshfranzen