FarisHijazi / localCopilot

A self-hosted github copilot guide using oobabooga webui
152 stars 11 forks source link

GitHub authentication #1

Open mani144 opened 1 year ago

mani144 commented 1 year ago

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

FarisHijazi commented 1 year ago

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 commented 1 year ago

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

mani144 commented 1 year ago

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.

FarisHijazi commented 1 year ago

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

joshfranzen commented 11 months ago

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.

FarisHijazi commented 11 months ago

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

joshfranzen commented 11 months ago

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