Windows Credential Manager issues with remote generic OAuth2 #1834
Replies: 2 comments
-
I forgot to say - with a Linux client, using git-credential-oauth, everything works as expected with this remote, so the Apache setup with
|
Beta Was this translation helpful? Give feedback.
-
Normal OAuth flow: request grant stuff → An The following is based on the observed effects and my pure speculation on the cause… While the initial There is currently a bug in GCM (#1838) not saving an inline You might have gotten away with deleting (aka. changing the value of) the So in summary:
With fixes for token related issues (#1838 and #1837), the OAuth flow with our local Forgejo instance works flawlessly. ☺ |
Beta Was this translation helpful? Give feedback.
-
Does anyone have a working setup for Windows Credential Manager, for a generic OAuth2 remote? The setup is identical to my previous question, but with the
credentialStore = dpapi
line removed from the local.gitconfig
.If the
.gitconfig
contains anoauthClientSecret
,fetch
/push
work, but the git client produces these error messages:Without an
oauthClientSecret
line, nothing works. Git does generate a browser window/tab locally, and I can log into the remote with a username, password, and TOTP. The window then tells me that I'm authenticated and can close the window, but git itself then tells me that authentication failed. Some more data points:git:https://refresh_token.example.com
. The username is OAUTH_USER, which appears to be arbitraryHave I missed something in the docs? Is anyone else doing this, or are you all on Github/etc??
Beta Was this translation helpful? Give feedback.
All reactions