mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
A token scoped to one medication got 404 for a name that matched none of the owner's medications and 403 for one that matched outside its scope, so it could confirm which medications exist by name. Its idempotency replay also ran before the scope check and returned any of the owner's doses stored under the key. A token without the wildcard now gets the same 403 for both, the replay is looked up only after the scope check, and a key already spent on another medication answers 409 without that dose. The wildcard token keeps its 404.
3.3 MiB
3.3 MiB