parsec-cloud icon indicating copy to clipboard operation
parsec-cloud copied to clipboard

Feat/authenticated api server

Open FirelightFlagboy opened this issue 3 years ago • 0 comments

The goal is to implement the authenticated part of the api using the http protocol.

TODO

  • [x] Add test on the server side
    • [x] Valid request
    • [x] Api-Version
      • [x] Missing header
      • [x] Incompatible version
      • [x] different but compatible version (revision changed)
    • [x] Authorization
      • [x] Missing header
      • [x] Invalid value
    • [x] Author
      • [x] Missing header
      • [x] Author not found in database
    • [x] Timestamp
      • [x] Missing header
    • [x] Signature
      • [x] Missing header
      • [x] Invalid Signature

Questions

  • [x] Were the api_version come from ? the api_version will be located in the header API_VERSION
  • [x] Is the Api-Version Header received from the user is correctly used ?
    • [x] Need to settle with the api version used
    • [x] Need to send the Api-Version that the serve will be using
  • [x] What to do with the timestamp ? Wont be used right now
  • [ ] Should parsec.api.protocol have its own version module ?

depends on #2338 closes #2624

FirelightFlagboy avatar Jun 30 '22 13:06 FirelightFlagboy