Open eladavron opened 9 months ago
That is something missing in UI. PR would be welcome.
In the meantime, you should be able to bypass it if you
a) Modify directly nuget.config for Plugin Manager C:\Users\USER\AppData\Local\GitExtensions\UserPlugins\NuGet.Config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
<!-- New source -->
<add key="github" value="https://nuget.pkg.github.com/NAMESPACE/index.json" />
</packageSources>
<!-- Crendentials for new source -->
<packageSourceCredentials>
<github>
<add key="Username" value="USERNAME" />
<add key="ClearTextPassword" value="PASSWORD" />
</github>
</packageSourceCredentials>
</configuration>
b) Use dotnet CLI to do the same thing
dotnet nuget add source --username USERNAME --password PASSWORD --store-password-in-clear-text --name github "https://nuget.pkg.github.com/NAMESPACE/index.json" --configfile C:\Users\USER\AppData\Local\GitExtensions\UserPlugins\NuGet.Config
I haven't actually tried them because I don't have a feed with auth at hand, but these are valid nuget options and Plugin Manager is using the same mechanics, so they should work
I tried that but it throws this error:
Despite it working correctly on Postman with same credentials. Tried with non-cleartext password too, same error.
I suspect it may be using the wrong authentication method when doing the POST?
Sorry, I don't have any idea without digging deeper.
Either I've completely missed this or this feature currently isn't available. I wanted to add a custom nuget repository (something we use internally in the company) but I couldn't find a way to add authentication, which is required by this repository. Please add this, it will be very useful.