diff options
author | Matt Ward <matt.ward@microsoft.com> | 2020-01-09 12:50:55 +0300 |
---|---|---|
committer | Matt Ward <matt.ward@microsoft.com> | 2020-01-09 12:50:55 +0300 |
commit | 85c263ed83c1faa63c506bf457edadc5f213b31e (patch) | |
tree | 1693176738bc1a0f65f78cdae9e8e260a66311f7 /main/src | |
parent | 9b1df4bf9c28475b158264641220fc0df3385e67 (diff) |
[NuGet] Fix credentials prompt being displayed on opening NuGet dialog
With check for updates enabled, and the NuGet command line credential
provider using the session token cache, when the Manage Packages dialog
was opened the dialog asking for a username and password would be
displayed. The problem was that the NuGet credential service puts itself
into retry mode when it is used. The retry flag is then set to true and
was passed to the credential provider. The credential provider sees this
is a retry and clears the session token cache so the token for the
package source is not used. This then results in the credential prompt.
To fix this the retry cache is reset on opening the dialog. It looks
like this change was lost on switching to the manage packages dialog:
ec92ab06b697236ed8e3ec43bb8fd9b8a428fe1a
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialogRunner.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialogRunner.cs b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialogRunner.cs index e766df17e2..67d3035ae0 100644 --- a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialogRunner.cs +++ b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialogRunner.cs @@ -38,6 +38,7 @@ namespace MonoDevelop.PackageManagement public void Run (IDotNetProject project = null, string initialSearch = null) { try { + PackageManagementCredentialService.Reset (); bool configurePackageSources = false; do { using (ManagePackagesDialog dialog = CreateDialog (initialSearch, project)) { |