Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

[Enhancement] Use default credentials for internet if available #577

Closed
ferventcoder opened this issue Sep 20, 2014 · 1 comment
Closed

Comments

@ferventcoder
Copy link
Contributor

Original discussion: https://groups.google.com/forum/#!msg/chocolatey/kquJUiXkkuo/wKRj87UEcSwJ

I tried to use Install-ChocolateyPackage for installing msi file from an internal http server with NTLM auth , but got an error "(401) Unauthorized"..

After I updated

  • Get-WebHeaders.ps1
  • Get-WebFile.ps1

to use default credentials like this:

  $req = [System.Net.HttpWebRequest]::Create($url);
  $req.Credentials = [System.Net.CredentialCache]::DefaultCredentials

  $webclient = new-object System.Net.WebClient
  $webclient.Credentials = [System.Net.CredentialCache]::DefaultCredentials
@AxCoder
Copy link

AxCoder commented Sep 21, 2014

Clarification - I did not mean default proxy - proxy is bypassed in my case according to IE settings - just use credentials for the site.

@ferventcoder ferventcoder changed the title [Enhancement] Use default proxy if available [Enhancement] Use default credentials for internet if available Sep 21, 2014
ferventcoder added a commit to ferventcoder/chocolatey that referenced this issue Nov 2, 2014
ferventcoder added a commit to ferventcoder/chocolatey that referenced this issue Nov 2, 2014
* stable:
  0.9.8.28-rc1
  (docs) updating changelog/release notes
  (chocolatey-archiveGH-577) use default credentials if available.
  (maint) add kickstarter message
  (chocolatey-archiveGH-558) quote path on batch fallback
  (chocolatey-archiveGH-571) Use process id instead of name
  (chocolatey-archiveGH-600) Give maintainer heads up about moderation
  (chocolatey-archiveGH-599) Restrict calls to choco.org to https

Conflicts:
	readme.markdown
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants