You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Tracking issue] Improve GitHub authentication via GitHub CLI #957
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:
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.
I'm not able to easily sign out of my GitHub account, and either reauthenticate with the same account or sign into another account.
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.
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
Reacted by Dani Comnea, Greg Wester, Will Bradley and Nate Smith
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.
Activity
daixiang0 commentedon Jun 20, 2020
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.
mislav commentedon 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.
Balmasexy commentedon Oct 8, 2023