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

Please provide OAuth2 integration for GitHub Enterprise #768

Closed
thanasisk opened this issue Feb 12, 2017 · 2 comments
Closed

Please provide OAuth2 integration for GitHub Enterprise #768

thanasisk opened this issue Feb 12, 2017 · 2 comments

Comments

@thanasisk
Copy link

thanasisk commented Feb 12, 2017

Hi all,
many thanks for the great work on Glide. One thing that I found missing is the ability to retrieve code from GitHub Enterprise repositories. Specifically:
GHE format is

https://GITHUB_ENTERPRISE_TOKEN@github.enterprise.url/something

as opposed to

https://USERNAME:GITHUB_TOKEN@github.com/something

there was a previous issue referencing it
#387
many thanks!

PS (I also assume that the problem does not exist between chair and keyboard, if that is the case please point me to the right direction)

@mattfarina
Copy link
Member

@thanasisk when you try to set the repo to https://GITHUB_ENTERPRISE_TOKEN@github.enterprise.url/something what happens? I'm curious of the error since I can't track this down right now.

@joshprzybyszewski
Copy link

joshprzybyszewski commented Apr 9, 2018

@mattfarina I don't think it's possible to embed the github token directly into the glide.yaml because (I assume) that file is committed to the private repo.

EDIT: if you've already got local creds for GHE SSO such that you can use git pull/push in the terminal as you normally would, then you can force glide install to use them by adding this to your ~/.gitconfig

[url "git@github.com:"]
    insteadOf = https://github.com/

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