get-chocolateywebfile user/pass #2477
-
It is possible too download file with https://docs.chocolatey.org/en-us/create/functions/get-chocolateywebfile which is behind a authorizition ? Our interal JFrog Artifactory only allowes access with user/pass of API key. And i would love too download installers by choco and not imbed them in choco packages. Is this possible |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I am assuming that Artifactory supports HTTP(s) basic authentication for downloading files? If so, you can specify an Here is what I have used to download files from a Nexus server. You will need to get the
|
Beta Was this translation helpful? Give feedback.
I am assuming that Artifactory supports HTTP(s) basic authentication for downloading files?
If so, you can specify an
Authorization
header with the required credentials, and pass that toGet-ChocolateyWebFile
via theOptions
parameter.Here is what I have used to download files from a Nexus server. You will need to get the
$user
and$password
into the script. Hardcoding or passing via package parameters should work.