Skip to content

Credential protocol enhancement: Credential types #2058

@dscho

Description

@dscho

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions