git-ecosystem / git-ecosystem/git-credential-manager

Credential protocol enhancement: Credential types

Open
#2,058 0 comments 1 reaction 1 assignee View on GitHub

@bahadrdsr is already working on this.

Since Nov 10, 2025.

enhancement gcm3.0
Dominant language
C#
Stars
9.3k
Forks
2.9k
Avg merge
7d 1h
Merged PRs (30d)
14

Description

Today, GCM returns all credentials as username/password pairs, even if the credential is a token such as a PAT or bearer token. Git will also only issue a Basic HTTP authentication header based on the username/password from the helpers. 

Starting in Git 2.46 it is now possible for credential helpers to advertise different types of credentials other than basic username/password pairs, and Git will correctly issue a Bearer HTTP authentication header. 

Note that remotes have historically only had to deal with Basic authentication headers for the HTTP transport, so testing if the host supports the Bearer scheme will be required before opting a provider in to this behavior.

Author: @mjcheetham

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.