Skip to content
This repository was archived by the owner on Feb 20, 2021. It is now read-only.
This repository was archived by the owner on Feb 20, 2021. It is now read-only.

Download fails on sites that require credentials where default credentials would work #2

Description

@rkeithhill

We have an internal web server setup that provides various internal installers. It requires Windows authentication to log onto the site. I started playing around with creating Chocolatey packages that will pull down an installer from this web site and install it on a machine. That is all going very well using Chocolatey 0.9.9.8. However when I try to install the same package using WMF 5 April Preview, I get this error:

22# Install-Package AcmeServer -Source ChocoAcme

WARNING: Unable to download from URI 'http://downloads.den.acme.com Yada yada yada

If I monitor a working choco install AcmeServer -y session with Fiddler, I see that the downloads web server returns a 401 auth error but choco tries again using my default Windows credentials. And the download succeeds. The Chocolatey provider on the other hand, does not try again after it receives the 401 auth error. It just bombs out. It seems to me that the provider should behave like choco.exe and upon receiving a 401 error, it should retry using the current user's default credentials.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions