Commit Graph

185 Commits

Author SHA1 Message Date
Benjamin Dauvergne 430a9d0fbc renvoyer key-not-found sur un GET d'une clé inconnue d'un pétale existant (fixes #17810) 2017-07-26 16:11:21 +02:00
Benjamin Dauvergne 078242c3d3 api_views: create CUT object when CUT is known from authentic but not from petale 2017-07-26 00:08:47 +02:00
Benjamin Dauvergne 9a632a505e debian_config: remove sentry support 2017-07-21 14:58:10 +02:00
Benjamin Dauvergne bdb0dc7e07 debian_config: simplify log format since we do not have hobo log filters 2017-07-21 14:57:59 +02:00
Benjamin Dauvergne 550120441b api_views: do not check SSL certificate of authentic, we are in a walled garden 2017-07-21 14:57:05 +02:00
Benjamin Dauvergne f974052a2b api_views: log when a CUT id is unknown 2017-07-21 14:56:45 +02:00
Benjamin Dauvergne 558d2f7a5f enlarge CUT.uuid to accomodate encrypted pairwise subs (less thant 100 bytes usually) 2017-07-21 14:17:33 +02:00
Benjamin Dauvergne 8be9cea025 api_views: use received credentials when checking cut_id on authentic 2017-07-21 14:16:25 +02:00
Benjamin Dauvergne 0e65ac6b9f authentication: log more, return error from authentic on credentials check 2017-07-21 14:15:53 +02:00
Benjamin Dauvergne 5fc1335637 authentication: do not check SSL certificate, we are in a closed garden 2017-07-21 14:14:54 +02:00
Josue Kouka fc3b6e5ae1 add idp based cut control (#14976) 2017-07-21 10:53:43 +02:00
Josue Kouka cde0489217 api: add cut's petals purge (#17605) 2017-07-19 17:00:45 +02:00
Josue Kouka 577ae9e5d5 fix: RP client saving after proxy authentication (#17548) 2017-07-12 10:20:45 +02:00
Frédéric Péters 7e9b9dad4f settings: remove typo in logging configuration (#16922) 2017-06-15 16:25:52 +02:00
Josue Kouka 1daab65f7e misc: add requests dependancies 2017-06-14 00:25:05 +02:00
Josue Kouka a47fa1b264 deleguate authentication to authentic (#16579) 2017-06-14 00:21:10 +02:00
Josue Kouka 481e058420 return 404 if cut uuid length over 32 (#16649) 2017-06-01 12:34:34 +02:00
Benjamin Dauvergne 7b242a4fc5 api: fix extraction of If-Match header in DELETE endpoint (fixes #15791) 2017-04-07 10:14:00 +02:00
Benjamin Dauvergne 3db90a8004 api: handle PreconditionException in the DELETE endpoint (fixes #15791) 2017-04-07 09:52:51 +02:00
Benjamin Dauvergne 94248822cf tests: clean temporary MEDIA_ROOT 2017-03-31 17:12:16 +02:00
Benjamin Dauvergne f745b52099 fix typo (fixes #15705) 2017-03-31 16:00:09 +02:00
Frédéric Péters fc7b099cc6 fix exception handling for missing partners (#15685) 2017-03-30 08:52:40 +02:00
Benjamin Dauvergne 014d6d7fd6 setup.py: fix missing sys import 2017-03-30 01:09:41 +02:00
Benjamin Dauvergne 7c4421b2d7 setup.py: conform to PEP440 2017-03-30 01:08:50 +02:00
Benjamin Dauvergne efe31c8e3b add french locale 2017-03-30 01:03:54 +02:00
Benjamin Dauvergne 60b1b8be77 change Petal.__unicode__ 2017-03-30 01:01:36 +02:00
Benjamin Dauvergne 6e28566185 improve models
- add ordering
- add uniquess to Partner.name
- allow admin_emails to be blank
- add clean method to Petal to help in adding petals from admin
- add help_text to all integer fields to give size unit
- add missing verbose_name to models
2017-03-30 01:01:36 +02:00
Benjamin Dauvergne 021a010c0a improve admin pages 2017-03-30 00:57:13 +02:00
Benjamin Dauvergne a3a56dbb0f never returns cut-not-found until we really check against authentic 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 6b88debc9c move implementation of limit checks and mail sending in models 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 43f74d45f5 do not load full request body into memory 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 00a9305a87 rename URL keywords
id_partner -> partner_name
id_cut -> cut_uuid
id_key -> petal_name
2017-03-29 23:21:53 +02:00
Benjamin Dauvergne 561ee48423 add migrations, rename model and fields
CUTIdentifier is renamed CUT.
partner_id is renamed partner and cut_id is renamed cut.
2017-03-29 23:21:53 +02:00
Benjamin Dauvergne 74c9ac409b clean everything 2017-03-29 17:17:11 +02:00
Benjamin Dauvergne d11cbee413 filter keys by ACLs (fixes #15503) 2017-03-20 10:56:37 +01:00
Benjamin Dauvergne 00026cfd17 rename parameter ?filter= to ?prefix= (fixes #15510) 2017-03-20 10:35:59 +01:00
Josue Kouka 5d6345b89d misc: fix jenkins tests 2017-03-16 15:39:28 +01:00
Josue Kouka 4efbefe7bf return Content-Length in GET response (#15274) 2017-03-15 17:25:01 +01:00
Josue Kouka 2d324f1572 handle allowed methods in PetalPermission 2017-03-15 17:24:46 +01:00
Josue Kouka a74235367a misc: strip etags content 2017-03-14 18:34:50 +01:00
Josue Kouka 1d35d73c7f enforce size limitation control (#15350) 2017-03-14 16:50:49 +01:00
Josue Kouka 6378c7f549 base ACL policy on prefix (#15282) 2017-03-13 18:49:57 +01:00
Josue Kouka 038c6e8203 improve caching handling (#14974) 2017-03-13 17:25:38 +01:00
Josue Kouka f6afe05058 return bad request error if content-type is missing 2017-03-13 14:16:22 +01:00
Josue Kouka c15f89b1f4 return 404 on HEAD if key not found (#15385) 2017-03-10 17:26:43 +01:00
Josue Kouka 55ec2df50c setup local log settings 2017-03-10 17:15:18 +01:00
Josue Kouka 636ad1d9b8 misc: use functools as decorator 2017-03-10 16:59:08 +01:00
Josue Kouka a38617a3e8 add head method (#15368) 2017-03-10 10:13:36 +01:00
Josue Kouka ff22efb1a4 log API requests and responses (#15366) 2017-03-09 20:14:06 +01:00
Josue Kouka 809a49b8ed handle if-none-match headers case (#15276) 2017-03-09 17:05:05 +01:00