kernelci / kernelci/kernelci-api

Add argument for token expiry date

Aperta
#385 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
10
Fork
21
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The current `/token` endpoint does not provide a way for clients to specify the lifetime of the token to be generated. This should be added as a way to override the internal API default expiry value.

- [ ] expiry date / time added to the `/token` endpoint
- [ ] unit tests updated accordingly
- [ ] end-to-end tests updated accordingly
- [ ] `--expiry` option added to `kci user token` and underlying API Python bindings in `kernelci-core`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start at the `/token` endpoint and inspect the existing unit and end-to-end tests. Then trace `kci user token` and its underlying API Python bindings in `kernelci-core`; done means the expiry override works across the endpoint, bindings, CLI option, unit tests, and end-to-end tests.

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

Valutazione

Stack tecnologico
python
Ambito
api, authentication, cli, testing
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.