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

[Tracking issue] Improve GitHub authentication via GitHub CLI #957

Closed
billygriffin opened this issue May 18, 2020 · 3 comments
Closed

[Tracking issue] Improve GitHub authentication via GitHub CLI #957

billygriffin opened this issue May 18, 2020 · 3 comments
Labels
auth related to tokens, authentication state, or oauth enhancement a request to improve CLI

Comments

@billygriffin
Copy link
Contributor

billygriffin commented May 18, 2020

There are many areas where the experience authenticating to GitHub via gh can be improved. These are the problems we'd love to solve, and the scope of this effort may be decreased or increased as we get into working on the solutions:

  1. The machine I'm using with gh doesn't have a web browser available, and I need a more elegant way to authenticate that doesn't involve visiting a web browser from the same machine.
  2. I'm not able to easily sign out of my GitHub account, and either reauthenticate with the same account or sign into another account.
  3. gh doesn't handle Git authentication for me. For example, if I use gh repo clone and I'm authenticated with GitHub CLI, but not with Git, I'm still going to be prompted to authenticate.
  4. The auth token is combined in the same config file that the rest of my settings are in, and is stored in plain text.

Related issues:
Auth without browser: #297
Sign out and back in: #887
Print URL for authentication: #612
Expired token with no way to reauth: #627
Auth failed because can't access localhost: #773
Don't store auth token in plain text: #449
Multiple account support (more elegant solution likely not in scope for this issue): #326

@daixiang0
Copy link

Hi, is a repo for https://cli.github.com/manual/ then we can add some workaround for this? For now we need to search issue list to get answer.

@ampinsk ampinsk moved this from To do 📝 to Backlog 🗒 in The GitHub CLI Jun 29, 2020
@ampinsk ampinsk added the auth related to tokens, authentication state, or oauth label Jul 27, 2020
@mislav
Copy link
Contributor

mislav commented Aug 31, 2020

Most of the priority requirements listed in this issue are now implemented in trunk and scheduled for a release. The few that we haven't done still have their respective tickets open.

@mislav mislav closed this as completed Aug 31, 2020
The GitHub CLI automation moved this from Backlog 🗒 to Done 💤 Aug 31, 2020
@Balmasexy

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth related to tokens, authentication state, or oauth enhancement a request to improve CLI
Projects
No open projects
The GitHub CLI
  
Done 💤
Development

No branches or pull requests

6 participants
@mislav @billygriffin @ampinsk @daixiang0 @Balmasexy and others