I am using the Julia Artifacts system and setting up a Artifacts.toml
file where the binaries are for internal private usage. We are using something like JFrog Artifactory, where one typically does Basic authentication upon requests. Is it possible to add basic authentication somehow to the Artifacts.toml file without exposing username and password?
The idea is to be able to do something akin to this when Julia uses artifact"someresource"
to access some resources mentioned in the Artifacts.toml
file:
julia> r = HTTP.request(:GET, "https://erik:qwerty@mickeymouse.jfrog.io/artifactory/api/storage/stuff/myfile.txt");
The normal examples of Artifacts.toml files don’t show any examples using authentication. Here is just an example:
[socrates]
git-tree-sha1 = "43563e7631a7eafae1f9f8d9d332e3de44ad7239"
lazy = true
[[socrates.download]]
url = "https://github.com/staticfloat/small_bin/raw/master/socrates.tar.gz"
sha256 = "e65d2f13f2085f2c279830e863292312a72930fee5ba3c792b14c33ce5c5cc58"
The idea is that instead of this GitHub URL I would use some JFrog Artifactory URL which might require authentication.