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

Store oauth_refresh_token

Open
#1,463 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

auth:oauth enhancement
Dominant language
C#
Stars
9.3k
Forks
2.9k
Avg merge
7d 1h
Merged PRs (30d)
14

Description

It would be useful to store Git credential attribute oauth_refresh_token

Currently GitLabHostProvider, BitBucketHostProvider and GenericHostProvider use a hacky workaround to save oauth_refresh_token as the password for a separate service:

https://github.com/git-ecosystem/git-credential-manager/blob/2365cac1a6a92106e9a3edef6048ecc788a9521d/src/shared/GitLab/GitLabHostProvider.cs#L218-L219

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.

Research direction

Start with the Git credential attribute documentation linked in the issue and inspect GitLabHostProvider.cs around lines 218-219, then compare the GitLabHostProvider, BitBucketHostProvider, and GenericHostProvider implementations. Done means determining how oauth_refresh_token should be stored without the separate-service workaround and covering the affected providers with appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, git
Domain
authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.