Robin S Posted October 31, 2017 Posted October 31, 2017 Does anyone know if there is a way to install a module via the "Add Module From URL" feature if the module is in a private repository? It's a GitLab repository in this case. When I try to do this it fails with: Quote File could not be downloaded... file_get_contents(...): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found (tried: fopen) The URL is correct, but no doubt needs authentication to be accessed. Is there a way to supply username/password to allow the download? 1
titanium Posted November 1, 2017 Posted November 1, 2017 Since GitLab doesn't support simple basic auth, you're out of luck with "username:password@" in front of the url. But you can set the "private_token" parameter like this: https://mygitlabserver.com/myrepo/repository/master/archive.zip?private_token=2CEgvKCfrABgshElokZ3 The private token can be generated within the GitLab personal user settings. This should get you going: https://mygitlabserver.com/profile/personal_access_tokens - replace "mygitlabserver.com" with the url of your GitLab server. 7
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now