Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NuGet.exe push 403 handling - Incorrectly prompting for credentials #2910
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.
NuGet.exe 2.x, 3.2.0, 3.3.0 show a 403 Forbidden with the error message.
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.
We intentionally added prompting on 403. The reasoning was that if the server is returned 403, the user should be given a chance to enter different credentials. 403 generally means the server is saying "okay, I know who you are but you don't have permissions to access that resource". Therefore, a different set of credentials from the user could be used.
That is somewhat annoying, for two reasons even