spring-cloud / spring-cloud/spring-cloud-config

Autowire user provided `GitCredentialsProviderFactory`

Open
#1,758 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
2k
Forks
1.3k
Avg merge
2d 59m
Merged PRs (30d)
16

Description

Is your feature request related to a problem? Please describe.
Yes. I want to connect to github, but i need to use a github application to provide the authentication for the repos, reading the source code i couldn't figure out a way to plug in my custom github application implementation for a jgit credentialsprovider. (I've explained this a little bit here https://stackoverflow.com/questions/64715249/how-to-provide-custom-gitcredentialsproviderfactory-to-jgitenvironmentrepository)

Describe the solution you'd like
Be able to plug in a jgit CredentialsProvider in a clean way (Like setting up a bean, or injecting a bean and then adding my custom implementation, or something similar)

Describe alternatives you've considered
I think in the past the team has overriden classes from the framework and it kind of worked out, but it seems too hacky and a mess to maintain

Additional context

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 at GitCredentialsProviderFactory and the JGit CredentialsProvider integration described in the issue; inspect how Spring beans are currently created or injected. Confirm the intended extension point and define completion as allowing a user-provided provider to be wired cleanly without overriding framework classes. The issue names no source file or test, so repository-wide search and maintainer clarification are needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, java, spring
Domain
authentication, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.