Skip to content

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

Description

@billygriffin

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

Activity

  1. daixiang0 commented on Jun 20, 2020

    @daixiang0

    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.

  2. added
    authrelated to tokens, authentication state, or oauth
    on Jul 27, 2020
  3. mislav commented on Aug 31, 2020

    @mislav
    Contributor

    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.

  4. Balmasexy commented on Oct 8, 2023

    @Balmasexy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authrelated to tokens, authentication state, or oauthenhancementa request to improve CLI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions