Commit Graph

328 Commits

Author SHA1 Message Date
Benjamin Dauvergne 59ec2bea1a oauth2: do not use the document hash as primary key for temp files (#22717)
It prevents a client from pushing the same file multiple times, which
makes temporary errors harder to handle (client would have to handle a
failure from the web-service). We allow any number of push of the same
document, orphans will be cleaned up by a background task, and storage
is not duplicated as document are deduplicated through their hash.
2018-03-22 21:15:30 +01:00
Benjamin Dauvergne d813e2b167 oauth2: improve logs with new link to clients (#22717) 2018-03-22 11:47:47 +01:00
Benjamin Dauvergne 1dddba4baf oauth2: link authorizations and temp files to clients (#22717) 2018-03-22 11:47:47 +01:00
Benjamin Dauvergne 1803cb9ddf oauth2: log more (#22717) 2018-03-22 11:47:47 +01:00
Benjamin Dauvergne 60d6259023 oauth2: use client_name as unicode value of clients (#22717) 2018-03-22 11:47:47 +01:00
Benjamin Dauvergne fc6119683b share make_url() with fargo, simplify URL building code (#22717) 2018-03-22 11:47:46 +01:00
Benjamin Dauvergne ab4a137c09 oauth2: update french translations (#22717) 2018-03-22 11:47:46 +01:00
Benjamin Dauvergne 49a01aac71 oauth2: remove useless for check redirect_uri in token endpoint (#22717) 2018-03-22 11:47:39 +01:00
Benjamin Dauvergne fbe0fc0b78 oauth2: enforce access_token and code lifetime (#22717) 2018-03-21 23:55:02 +01:00
Benjamin Dauvergne 2fe7382ab3 oauth2: improve coding style (#22717)
* declare all views with .as_view()
* add helper make_url() to properly add parameters to query string of
  redirect_uri
* stop threading the redirect_uri through the session
* make POST form target implicit, so that parameters are kept
* do checks in dispatch() to share them between POST and GET methods
2018-03-21 23:53:40 +01:00
Benjamin Dauvergne d5608c7478 oauth2: always delete the temp document on a POST (#22717) 2018-03-21 23:53:40 +01:00
Benjamin Dauvergne 114e474d4c oauth2: fix typo (#22717) 2018-03-21 23:53:40 +01:00
Benjamin Dauvergne 0ec6e92235 oauth2: add localization (#22717) 2018-03-21 23:53:40 +01:00
Benjamin Dauvergne db69542403 oauth2: remove unused import (#22717) 2018-03-21 23:53:40 +01:00
Benjamin Dauvergne 3d69062edb tox.ini: rename coverage file only if coverage is enabled (#22717) 2018-03-21 23:53:40 +01:00
Benjamin Dauvergne d780a085a9 fix typo "attachement" -> "attachment" (fixes #22676) 2018-03-21 19:03:34 +01:00
Frédéric Péters b962eb7d5d translation update 2018-03-17 17:33:00 +01:00
Frédéric Péters 8cc1cb6d98 misc: change empty document box message (#22597) 2018-03-17 13:34:47 +01:00
Frédéric Péters 47f0ac02b4 templates: fix colspan and add a class to empty table row (#22596) 2018-03-17 13:19:25 +01:00
Frédéric Péters 43666f7ac9 use proper capitalisation for column titles (#22581) 2018-03-16 15:39:04 +01:00
Frédéric Péters 2444be6af6 fix typo in translation 2018-03-16 15:32:32 +01:00
Paul Marillonnet 5958b9a916 simpler title/filename printing in templates (#22516) 2018-03-14 15:01:21 +01:00
Frédéric Péters 570b4b391a translation update 2018-03-14 11:51:58 +01:00
Frédéric Péters 855bd1fc88 misc: mark Title as header column for translation (#22514) 2018-03-14 11:37:43 +01:00
Frédéric Péters 28ce42fd46 translation update 2018-03-14 11:08:43 +01:00
Frédéric Péters 35fd40d6d6 add a confirmation page before removing a file (#16825) 2018-03-14 11:04:36 +01:00
Serghei Mihai 334ea5b5a8 oauth2: remove unused template tag loading (#22505) 2018-03-14 11:04:36 +01:00
Paul Marillonnet bf3e756d51 add additional read-only information in main table (#21486) 2018-03-14 11:04:36 +01:00
Benjamin Dauvergne 6d8c9f9a54 setup.py: really constrain to django-filter<2 (#22350) 2018-03-12 15:29:57 +01:00
Benjamin Dauvergne 400ea0e308 debian: restrain to python-django-filters<2 (fixes #22350) 2018-03-12 15:11:20 +01:00
Benjamin Dauvergne 246d2a128d setup.py: restrain to django-filter<2 (#22350) 2018-03-12 14:56:18 +01:00
Josue Kouka e22648dd3f api: authenticate OAUTH2 clients through Authentic (fixes #16842) 2018-03-06 12:08:41 +01:00
Josue Kouka 85ebba8394 api: use DRF for OAUTH2 APIs (#16842) 2018-03-06 12:08:27 +01:00
Josue Kouka 94dab06b42 misc: move some util functions in a utils.py file (#16842) 2018-03-06 12:05:17 +01:00
Frédéric Péters bdc7945217 misc: don't initialize queryset with an empty string 2018-02-02 14:33:21 +01:00
Frédéric Péters 4eb36e2f01 misc: use django-tables2 adapted to django version 2018-02-02 14:29:58 +01:00
Frédéric Péters 904854876f debian: remove TEMPLATE_DEBUG reference (#16056) 2018-02-02 14:05:44 +01:00
Frédéric Péters 0bf5b6b90f misc: add support for django 1.11 (#16057) 2017-12-12 11:00:25 +01:00
Frédéric Péters 7ed396892d misc: update to use new TEMPLATES settings (#16056) 2017-12-12 11:00:25 +01:00
Paul Marillonnet 8cd7cabb00 i18n and French translation update (#20139) 2017-12-06 12:53:23 +01:00
Paul Marillonnet 0aeef5bc1f add browser-side validation of document size (#18599) 2017-12-06 10:53:32 +01:00
Josue Kouka 2c2fcfa8a7 misc: remove pytest-capturelog from tox.ini (#20322) 2017-11-28 13:30:23 +01:00
Thomas NOËL ab67fa60a1 debian: run additional settings snippets (#20267) 2017-11-24 16:25:44 +01:00
Thomas NOËL c45a2d6956 debian: suggests postgresql instead of recommend it (#20002) 2017-11-17 11:15:31 +01:00
Jean-Baptiste Jaillet fe873ff083 add oauth2 access to get and put a document (#14147) 2017-11-06 17:37:00 +01:00
Benjamin Dauvergne bab24b48c0 tests: replace TestApp by classic app fixture (fixes #19900) 2017-11-06 15:08:36 +01:00
Benjamin Dauvergne fb987b6133 tox: replace pytest-capturelog by pytest-catchlog (#19900) 2017-11-06 15:08:31 +01:00
Frédéric Péters 8552c37066 add missing migration and form template 2017-10-16 16:23:06 +02:00
Frédéric Péters 0c64f7ecf5 include (experimental) editable metadata on user documents (#19381) 2017-10-16 15:09:58 +02:00
Thomas NOËL 58c2ce45fa fix i18n with named arguments (#18689) 2017-09-24 12:52:11 +02:00