-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hi there,
I did manage to create some functions to mimic the GIT functions.
but i cannot write functions that need authentication.
i do not know how to translate the (url, usernameFromUrl, types) => part of the CredentialsHandler to powershell
options.CredentialsProvider = new CredentialsHandler(
(url, usernameFromUrl, types) =>
new UsernamePasswordCredentials()
{
Username = USERNAME,
Password = PASSWORD
});[LibGit2Sharp.UsernamePasswordCredentials] $UserCred = New-Object LibGit2Sharp.UsernamePasswordCredentials
$Credentials.UserName = $Username
$Credentials.Password = $Password
PS U:\> [LibGit2Sharp.Handlers.CredentialsHandler]::new
OverloadDefinitions
-------------------
LibGit2Sharp.Handlers.CredentialsHandler new(System.Object object, System.IntPtr method)
so the main question is how to create a "CredentialsHandler"
Metadata
Metadata
Assignees
Labels
No labels