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

Support web-based OAuth flow for Enterprise authentication #384

Open
misilot opened this issue Aug 26, 2013 · 6 comments
Open

Support web-based OAuth flow for Enterprise authentication #384

misilot opened this issue Aug 26, 2013 · 6 comments

Comments

@misilot
Copy link

misilot commented Aug 26, 2013

Hi,

I am trying to use with GitHub Enterprise, however it keeps asking for a username and password. We are using the CAS backend.

Thanks!

@mislav
Copy link
Owner

mislav commented Aug 26, 2013

I don't know what a CAS backend is. GitHub has two different types of authentication:

  1. the git authentication to get access to repos (usually by SSH keys);
  2. the website/API authentication (first by username/password, then via OAuth).

hub uses GitHub API, so it needs to exchange your username/password for OAuth keys. This has nothing to do with git protocol over SSH, and SSH keys can't help here.

I suspect that whatever CAS is, it means you don't have a regular GH Enterprise username/password that you can pass on the command-line. Not sure how to work around this

@misilot
Copy link
Author

misilot commented Aug 26, 2013

Correct, we authenticating against an external authentication scheme. So we
do not have regular GH Enterprise username/password that can be passed on
the command-line.

On Mon, Aug 26, 2013 at 9:23 AM, Mislav Marohnić
[email protected]:

I don't know what a CAS backend is. GitHub has two different types of
authentication:

  1. the git authentication to get access to repos (usually by SSH keys);
  2. the website/API authentication (first by username/password, then
    via OAuth).

hub uses GitHub API, so it needs to exchange your username/password for
OAuth keys. This has nothing to do with git protocol over SSH, and SSH keys
can't help here.

I suspect that whatever CAS is, it means you don't have a regular GH
Enterprise username/password that you can pass on the command-line. Not
sure how to work around this


Reply to this email directly or view it on GitHubhttps://github.com//issues/384#issuecomment-23261888
.

@mislav
Copy link
Owner

mislav commented Aug 26, 2013

Here's a person who had the same issue and solved it manually #293 (comment)

I understand that this is hackish and confusing. I'll look into how to support the web-based OAuth flow in case there's no username/password. However, in the meantime you're on your own

@misilot
Copy link
Author

misilot commented Aug 26, 2013

Thanks

On Mon, Aug 26, 2013 at 9:29 AM, Mislav Marohnić
[email protected]:

Here's a person who had the same issue and solved it manually #293#293 (comment)

I understand that this is hackish and confusing. I'll look into how to
support the web-based OAuth flow in case there's no username/password.
However, in the meantime you're on your own


Reply to this email directly or view it on GitHubhttps://github.com//issues/384#issuecomment-23262274
.

@mislav mislav added the feature label Dec 23, 2014
sc68cal added a commit to sc68cal/hub that referenced this issue Apr 4, 2017
While a more permanent solution is being developed, link to the
workaround so that people can continue to use hub in their GHE
environments.

Related-Bug: mislav#826
Related-Bug: mislav#384
@hakanai
Copy link

hakanai commented Oct 12, 2017

Even if user/pass hypothetically did work for some user I haven't yet encountered, they could get an access token just as easily as anyone else, so I wonder why the command-line tool couldn't just prompt for the access token instead of user/pass, and let the people who haven't made one yet make one specifically for the tool.

@mpeddycord
Copy link

Any update on this open issue?

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

No branches or pull requests

4 participants