Skip to content

generic: permit any protocol for generic OAuth config - #2445

Merged
mjcheetham merged 1 commit into
git-ecosystem:mainfrom
mjcheetham:any-protocol-generic-oauth
Sep 16, 2026
Merged

mjcheetham merged 1 commit into
git-ecosystem:mainfrom
mjcheetham:any-protocol-generic-oauth

Conversation

@mjcheetham

@mjcheetham mjcheetham commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

We currently do not consider either Windows Integrated or generic OAuth authentication in the generic provider, for a non-HTTP based remote URL.

Since GCM can be called as a credential helper by Git for things such as an SMTP server (see git sendmail), where the SMTP server may use OAuth authentication, we should relax this restriction.

Note that we still require HTTP(S) remotes for Windows Integrated auth since the probe for that requires an HTTP(S) call.

Replaces #1956

Tip

Ignore whitespace when reviewing the diff in the GenericHostProvider.cs file - we are adding a wrapping if () { } block to existing code.

We currently od not consider either Windows Integrated or generic
OAuth authentication in the generic provider, for a non-HTTP
based remote URL.

Since GCM can be called as a credential helper by Git for things such as
an SMTP server (see `git sendmail`), where the SMTP server may use OAuth
authentication, we should relax this restriction.

Note that we still require HTTP(S) remotes for Windows Integrated auth
since the probe for that requires an HTTP(S) call.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
@mjcheetham
mjcheetham force-pushed the any-protocol-generic-oauth branch from 95f2928 to 9e2e539 Compare September 16, 2026 14:25

@dscho dscho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mjcheetham
mjcheetham merged commit 96ae084 into git-ecosystem:main Sep 16, 2026
25 checks passed
@mjcheetham
mjcheetham deleted the any-protocol-generic-oauth branch September 16, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants