NuGet.exe push 403 handling - Incorrectly prompting for credentials (original) (raw)
NuGet.exe is incorrectly prompting for credentials on push that results in 403 Unauthorized. I tested this against local gallery but verified it has the same behaviour against NuGet.org.
Repro steps
- Push a package using a non-existing API key (so that authentication will fail)
NuGet.exe push <package> <random-guid-api-key> -Source https://www.nuget.org/api/v2/package
Expected
NuGet.exe 2.x, 3.2.0, 3.3.0 show a 403 Forbidden with the error message.
## Actual
NuGet.exe 3.4.3, 3.4.4 and 3.5.0-beta prompt for credentials.
After 3 failed attempts, the 403 Forbidden is shown.


