kernelci / kernelci/kernelci-api

Add argument for token expiry date

Open
#385 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
10
Forks
21
PR merge metrics
No merged PRs in 30d

Description

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`

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authentication, cli, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.