user21218253
user21218253

Reputation: 1

LibGit2Sharp : 'Negotiate' Authentication is not supported

I have a .net core worker service which uses LibGitSharp (0.27.0-Preview) with NativeBinaries(2.0.315-aplha0.9) to talk our git repo hosted in Bitbucket. Our bit bucket supports sso via SPENGO (kerberos). To clone a given repo,

var co= new CloneOptions(BranchName="master" CredentialsProvider= (_url,_user, cred) => new DefaultCredentials() );

var repoPath=Repository.Clone("repo url", workingdir, co);

This works all fine in my windows development machine. However, When we have deployed it as docker container ( base image is Linux/ubi7) , it fails with above error i.e. "LibGit2Sharp : 'Negotiate' Authentication is not supported"

The DefaultCredentials class should be able to get the logged user info and use it , as per source code comments here https://github.com/libgit2/libgit2sharp/blob/master/LibGit2Sharp/DefaultCredentials.cs

Stack trace does not have any details except above message. I am not clear on the root cause of this error. when it worked in windows dev machine, I believed that it worked based on SPnego auth . Does Libgit2sharp supports Kerberos via SPNEGO ? If yes, is my container lacking of required libs for Spengo to work ?

Upvotes: 0

Views: 201

Answers (0)

Related Questions