OneGet / NuGetProvider

NuGet Provider for OneGet. Works on Nano Server.
MIT License
31 stars 24 forks source link

Register-PackageSource: Doesn't save credentials to `nuget.config` file #67

Open SetTrend opened 2 years ago

SetTrend commented 2 years ago

Current Behavior

When I enter …

Register-PackageSource -Name 'Test' -Location 'https://test.contoso.com/' -ProviderName 'NuGet' -Credential (Get-Credential) -ForceBootstrap -Trusted

… no credentials are getting saved to the nuget.config file.

Expected Behavior

If the Credential argument is provided with ProviderName being "NuGet", Register-PackageSource should save provided credentials to nuget.config file.

SetTrend commented 2 years ago

As a side note: The password should be stored encrypted in the nuget.config file. Providing an additional argument -AsPlainText, however, the credentials should be stored unencrypted, in plain text.