Skip to content

Support for multiple GitHub organizations #83

@k-k-k-k-k-k-k-k

Description

@k-k-k-k-k-k-k-k

As a member of several GitHub organizations that have not approved git-credential-oauth (yet) but Git Credential Manager and GitHub CLI respectively, it would be awesome to have support for a configuration like the following.

[credential]
	helper = cache --timeout 21600
	helper = oauth
[credential "https://github.com/org-a/"]
	# sourced from <https://github.com/git-ecosystem/git-credential-manager/blob/v2.6.1/src/shared/GitHub/GitHubConstants.cs>
	oauthClientId = 0120e057bd645470c1ed
	oauthClientSecret = 18867509d956965542b521a529a79bb883344c90
	oauthRedirectURL = http://127.0.0.1/
[credential "https://github.com/org-b/"]
	# sourced from <https://github.com/cli/cli/blob/v2.75.0/internal/authflow/flow.go>
	oauthClientId = 178c6fc778ccc68e1d6a
	oauthClientSecret = 34ddeff2b558a23d38fba8a6de74f086ede1cc0b
	oauthRedirectURL = http://127.0.0.1/callback

Keep up your excellent work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions