First of all congratulations on creating such a great tool. It makes viewing complex C4 architectures a lot more pleasurable.
I am trying to get the git integration to work to be able to see multiple branches. However I always get an error about no CredentialsProvider being registered.
I am using Azure DevOps and have the following step in my pipeline;
Exception in thread "main" org.eclipse.jgit.api.errors.TransportException: https://PAT@GIT_REPO.git: Authentication is required but no CredentialsProvider has been registered
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:249)
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:319)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:189)
at nl.avisi.structurizr.site.generatr.ClonedRepository.refreshLocalClone(ClonedRepository.kt:35)
at nl.avisi.structurizr.site.generatr.GenerateSiteCommand.generateSiteForModelInGitRepository(GenerateSiteCommand.kt:79)
at nl.avisi.structurizr.site.generatr.GenerateSiteCommand.execute(GenerateSiteCommand.kt:71)
at kotlinx.cli.ArgParser.parse(ArgParser.kt:657)
at kotlinx.cli.ArgParser.parse(ArgParser.kt:530)
at nl.avisi.structurizr.site.generatr.AppKt.main(App.kt:13)
Caused by: org.eclipse.jgit.errors.TransportException: https://PAT@GIT_REPO.git: Authentication is required but no CredentialsProvider has been registered
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:687)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:465)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:153)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:105)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1480)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:238)
When I test the URL https://PAT@GIT_REPO.git via postman I also get an error (401).
However when I include the PAT via an authorization header it works.
Hi,
First of all congratulations on creating such a great tool. It makes viewing complex C4 architectures a lot more pleasurable.
I am trying to get the git integration to work to be able to see multiple branches. However I always get an error about no
CredentialsProvider
being registered.I am using Azure DevOps and have the following step in my pipeline;
This gives me the following error;
When I test the URL
https://PAT@GIT_REPO.git
via postman I also get an error (401).However when I include the PAT via an authorization header it works.
As detailed here; https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=Windows#use-a-pat
I also tried this below but it did not work;
How can I therefore access a git repository that requires authentication?