-
Notifications
You must be signed in to change notification settings - Fork 2.1k
OAuth for Gitea does not work within vs code remote #1514
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
Maybe you want to make that a less mysterious report by sharing the actual error message? |
sorry that is from the issue template. when cloning a gitea repo, VS code prompt for user name and password like in a HTTP basic auth, instead of using git-credential-manager. when cloing a github repo, VS code started a pop up window for the oauth as desired. @dscho could you give me some hint about how to get a debug level log for git-credential-manager when running |
The common way is to set the environment variable |
the exact repo link works on the same GCM version on windows, though |
This is expected. You can't use OAuth on a remote machine because Gitea OAuth requires a desktop web browser:
At least until Gitea implements OAuth Device Authorization Grant go-gitea/gitea#27309 (comment) (as GitHub does). |
This one line is not related to vscode remote, but if your git version is older than 2.41.0, it won't pass the WWW-Authenticate header to the credential helper and therefore won't autodetect Gitea. Either configure endpoints manually or update git executable. |
Version
latest
Operating system
Linux
OS version or distribution
Ubuntu 22.04 fresh install
Git hosting provider(s)
Other - please describe below
Other hosting provider
Gitea
(Azure DevOps only) What format is your remote URL?
None
Can you access the remote repository directly in the browser?
No, I get a permission error
Expected behavior
after installing gcm, vs code (with SSH remote plugin) shoud prompt for oauth login.
Actual behavior
OAuth for Gitea does not work within vs code SSH remote plugin
microsoft/vscode#202123 (comment)
Logs
No response
The text was updated successfully, but these errors were encountered: