> Le 31 mars 2018 à 06:02, Sean P. DeNigris <s...@clipperadams.com> a écrit : > > CyrilFerlicot wrote >> Maybe gitlab has such tokens? > > Yes, Gitlab artifacts can be accessed that way: > > # Reference https://docs.gitlab.com/ee/api/jobs.html#get-job-artifacts > # Project ID available in general settings > curl --location --header "PRIVATE-TOKEN: {tokenID}" > "https://gitlab.com/api/v4/projects/{projectID}/jobs/{jobID}/artifacts" > --output ~/Downloads/download.zip >
To manage auth, you could add a download method to PhLDownloadManager class and use something like: keyedCollection := { 'PRIVATE-TOKEN’ -> tokenID } asDictionary. newHTTPClientForUrl: url extraHeaders: keyedCollection ^ ZnClient new signalProgress: true; url: url; headerAddAll: keyedCollection enforceHttpSuccess: true; ifFail: [ :exception | self downloadFailureForUrl: url ]; yourself