-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Bug]: Login GitHub #4795
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
Comments
Argh. I can't reproduce locally on macOS + Brave but obviously that's because I've already authenticated with Git. We've had this in the past and I know @code-asher has fixed it. What happens if you open the Command Palette > "Publish to GitHub" > enter your PAT? Does that work? |
Hi, It's ok if I use git remote add origin and PAT I use Brave and Windows or MacOs but my setup is a Ubuntu 20.04 in a VPS and Docker container in my VPS It's possible the proxy doesn't work with github callback ? |
awesome!
Possibly 🤔 I wish I knew how to reset my Git auth locally so I could actually try to reproduce. There's a possibility it's broken and not related to your proxy |
Happens on MacOS BigSur (11.4) and Arch Linux, both with firefox and vivaldi (code-server hosted on arch) |
Thanks @True-cc!
For now you can use this workaround^ |
@jsjoeio this method doesn't work for me because the window doesn't let me insert the PAT, it opens the error link directly $ code-server --version
4.0.2 5cdfe74686aa73e023f8354a9a6014eb30caa7dd |
@ricreis394 can you share a video? |
@jsjoeio sure, here it goes |
@jsjoeio It just cancels. Won't do anything The strange thing is, before version 4, I was logged in on github, don't know why it logged out... |
@ricreis394 hmm...I mean we had a big upgrade for VS Code in 4 so maybe it reset there? I'm not sure. I don't know when I'll be able to look into this cause I can't easily reproduce :( But I'll add it to the high priority list. Or see if I can add it in next month's sprint. |
Heads-up: for anyone else experiencing this, please give a thumbs-up on the issue description! That will help me see how many people are affected by this and prioritize properly. |
@jsjoeio anything I can do to help debug the issue? |
Not sure if this helps, but I can push to GH using username and PAT after cancelling the default login option. However, it asks for the PAT each time I try to push a commit. Information: OS: Debian Bullseye |
Hmm...you were very helpful with the video! I wish there was a way to reproduce it consistently. One thing you could do is grab the authorization URL that opens in the browser (be sure to remove the auth token from the URL) and share it here? I know we've patched that in the past so I'm guessing we lost that patch. cc @code-asher
Thank you @chrisdburr! That is usually a separate error that means your credential helper isn't caching your credentials. This has helped me in the past. |
You are probably right about it being lost. I will need to be in this code soon for other reasons so I will take a look. |
Not sure what to hide, so I hidden the requestId and the State |
Based on the reports, this might be due to our setup. I'm experiencing the same issue with my docker ( This issue happens on all browsers I tried (latest Chrome/Safari/Brave on macOS + Safari on iPad). The workaround in #1883 still works. (Unfortunately the Github Login seems to be stored locally in the browser, which means I'd need to perform this everytime I'm switching clients. On the bright side, using inkognito mode should give you a 'clean' instance to reproduce @jsjoeio) In my opinion storing and using a PAT on the server would be the best way, so I won't need to re-authenticate when using a new client. (But I'm new to this project, so I have no idea if this is even remotely possible :D ) P.S.: About Screen:
P.P.S: The request is similiar to the one above: |
#1883 (comment) resolved temporarily |
Used the below method and worked as a temporary workaround
Credits: #1883 (comment) |
Build a little script using the method above to get the URL.
EDIT: As you can see this requests for |
If nothing else works, maybe having that within code-server could be the best solution? |
me too, same enviroment with u |
Thank you @ricreis394 for the solution and @steilerDev for the killer script 🔥 Hoping this is a quick fix on our end. We had yesterday off but we're back this week. Thanks for the patience! |
A fix will be available in the next release! |
Thank you |
* Restore auth relay patch Fixes coder/code-server#4795. * Fix callback URIs behind a sub-path
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.0.1Steps to Reproduce
Expected
Have github authentication message
Actual
Error committing github
Logs
No response
Screenshot/Video
Does this issue happen in VS Code?
Are you accessing code-server over HTTPS?
Notes
No response
The text was updated successfully, but these errors were encountered: