cli / cli/cli

Implement proper waiting for kwallet authentication

Ouverte
#11,005 8 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement gh-auth needs-investigation
Langage dominant
Go
Étoiles
46.3k
Forks
9k
Merge moyen
2 j 6 h
PR mergées (30 j)
97

Description

### Describe the feature or problem you’d like to solve

When using gh cli after the kwallet has closed I need to type the password for opening it again.
For all applications I've used until this cli, the application simply waits until the wallet have either been opened or the request have been canceled.

With the gh cli it fail in what feels like 5 seconds - at least not enough for me to type the password.
This means that each time my wallet has closed I call the same command twice, once for opening the wallet and then failing the command and once for running the command.

### Proposed solution

To have a way longer timeout, it doesn't have to be infinite but I think it has to be longer than seconds.
I think that most people won't be able to type the password in this short duration and I think 5 minutes should suffice.

### Additional context

The flow I'm going through each time the wallet has closed:

```bash
$ gh repo view --web
HTTP 401: This endpoint requires you to be authenticated. (https://api.github.com/graphql)
Try authenticating with: gh auth login
(1) $ gh repo view --web
Opening https://github.com/... in your browser.
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par retracer l’authentification utilisée par `gh repo view --web` après la fermeture de kwallet, puis comparez-la au flux de `gh auth login` décrit dans l’issue. Identifiez à quel endroit la requête du wallet expire ; le travail est considéré comme terminé lorsque la CLI attend suffisamment longtemps pour que l’utilisateur saisisse le mot de passe ou annule, tout en préservant le comportement existant en cas d’erreur d’authentification.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
go
Domaine
authentication, cli
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
55/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.