pvarki / pvarki/python-rasenmaeher-api
Auto-consume any nonces in JWTs in auth middleware
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1
- Forks
- 1
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 5
Description
To make sure JWTs that should only be used for creating one logintoken cannot be abused for other things.
This will break a bunch of tests that abuse tilauspalvelu JWTs, see https://github.com/pvarki/python-rasenmaeher-api/tree/autouse_nonces
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the authentication middleware and the tests that use tilauspalvelu JWTs. Review the linked autouse_nonces branch for context, then verify that JWT nonces are consumed so tokens intended only to create one logintoken cannot be reused for other purposes. Update the affected tests and run the test suite to confirm the changed behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100