[FEATURE] Support Oauth remote device flow for headless environments

Aperta
#690 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust

Direzione di ricerca

Leggi docs/OAUTH2.md, in particolare la sezione OAuth2 future-enhancements, quindi segui l’entry point pup auth login e il suo flusso attuale nel browser. Il lavoro è completato quando un login remoto può fornire un URL per un browser locale separato, completare l’autorizzazione senza reindirizzare a un server web locale e lasciare pup pronto per l’uso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

authnz enhancement usability

Is your feature request related to a problem?

I want to run the Oauth flow within a remote environment without access to a web browser. This is currently listed as an enhancement for the Oauth2 auth.

Describe the solution you'd like

After running pup auth login (within a remote environment) I want to get a URL that I'll follow inside my local box. Optionally, the auth flow should check and confirm whether I'm logging from pup at some point.

After a successful login, I expect the web browser to show me a message like

"pup vx.y.z was successful authorized, you can now close this tab.

and pup should be ready to use without any redirects to a local web server.

Describe alternatives you've considered

The alternatives here are PATs or API Keys, but having a Oauth device flow would bring to pup feature parity between with other CLIs that I use in the same remote environment.

Additional context

I think that aws-cli offers a experience similar to what I want for pup

Proposed command syntax (if applicable)

pup auth login --remote-device

or alternatively

pup auth login --no-browser
Lingua principale
Rust
Stelle
1k
Fork
138
Merge medio
17h
PR unite (30g)
82

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DataDog/pup

Tutte le issue di DataDog/pup

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.