Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registering packages with git-based repository requiring auth #222

Open
evil-shrike opened this issue Feb 18, 2016 · 4 comments
Open

Registering packages with git-based repository requiring auth #222

evil-shrike opened this issue Feb 18, 2016 · 4 comments

Comments

@evil-shrike
Copy link

I run a private-bower with default config. Went to its webapp and registered a package. That package has git url leading to my internal git (Bitbucket). The git's repo for the package requires authentication.
Auth will be resolved on the client when a user will install the package (bower install) - via git's credential manager. But private-bower also needs to get some info from git repo and it can't.

As I understand private-bower doesn't support git authentication. In webapp I can see error:

Failed to load package details! (Your private-bower server needs read access to this Git repository and the git repository must contain a bower.json file!)

@janjaap
Copy link

janjaap commented Sep 7, 2016

I ran into the same problem. Installing Github ssh key on the server and making sure that none of the folders in the path where private_bower is installed are owned by root, solved it.

@janjaap
Copy link

janjaap commented Sep 7, 2016

Also: #149 (comment)

@felipeplets
Copy link

@evil-shrike could you solve this issue?

I could not realise yet how to solve it, I can access my BitBucket repository from the server using my SSH keys, but Private Bower always return the same message:

Failed to load package details! (Your private-bower server needs read access to this Git repository and the git repository must contain a bower.json file!)

  • I can clone the repository in the server just by running: git clone REPO
  • The repo has the bower.json file located in the root folder in the master branch

@evil-shrike
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants