Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit windows credentials instead of unauthorized #78

Open
JanVargovsky opened this issue Sep 23, 2018 · 5 comments
Open

Implicit windows credentials instead of unauthorized #78

JanVargovsky opened this issue Sep 23, 2018 · 5 comments

Comments

@JanVargovsky
Copy link

Is it possible to add support for commands (git clone, pull and push), to use implicit credentials as its done using git CLI?

@JanVargovsky
Copy link
Author

Found out there is a library that can provide such credentials but it is not converted to .net standard yet (microsoft/Git-Credential-Manager-for-Windows#596). Also I'm not sure how to handle this in crossplatform way because this is windows only.

@devlead
Copy link
Member

devlead commented Sep 23, 2018

@devlead
Copy link
Member

devlead commented Sep 23, 2018

Ok it's possible, but not available on .NET standard would be an issue, but example code for reference
https://www.kevinkuszyk.com/2016/09/30/cloning-a-private-git-repository-with-libgit2sharp-and-git-credential-manager-for-windows/

But should be able to use that with Cake_Git today on full framwork but referencing Microsoft.Alm.Authentication as and addin and using code above for username/pw.

@JanVargovsky
Copy link
Author

Yea, I've found the same blog post. Already integrated and works fine, kinda scared me how easily I can obtain any windows credentials though.

@awesomehd1
Copy link

I think it's possible to add them because if you add git clone, pull, and push, When you like use git clone then it might show the error if you are developing the git clone feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants