-
Notifications
You must be signed in to change notification settings - Fork 258
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
NuGet list doesn't use v3 credentials for v2 list #2869
Comments
+1 |
Bug remains in |
The account whose credentials we (securely) set up in TeamCity to connect to myget has been repeatedly getting locked out. We have checked in versions of nuget.exe in our repositories to bootstrap the package restore and build process. Various repositories have upgraded the checked in nuget.exe to 3.4. It is my belief that this bug is causing the account lockout after a few CI builds. I now have to recommend to my devs to stay with cc @maartenba |
@damianh That sucks :-( Do you have any request logs to share? |
The work in NuGet/NuGet.Client#3273, might fix this issue thanks to @BlackGad. We'd need to validate that first though. We'd like need to change the mock server to watch for the auth headers. |
See this comment |
I believe that this bug was fixed in NuGet 3.3 as #1229, but was re-introduced in 3.4 and still exists in the latest nightly.
Repro:
Example nuget.config:
Run “nuget list”
Expected behavior: NuGet re-uses the v3 credentials for v2 list
Actual behavior: NuGet prompts “Please provide credentials for: https://<authenticated_feed>/v2/”
Note that the bug does not occur when the credential provider is used. In fact, the credential provider is (correctly) only ever invoked once:
List is the only command affected.
The text was updated successfully, but these errors were encountered: