Commit Graph

15 Commits

Author SHA1 Message Date
Paul Marillonnet 3ff19a18a9 minor corrections in oauth 2.0 protocol testing (#33217) 2019-07-04 13:00:44 +02:00
Benjamin Dauvergne 7ab9a10a6c add copyright notices 2019-07-04 13:00:43 +02:00
Benjamin Dauvergne 76af20c99e tests: fix PEP8ness 2019-07-04 13:00:43 +02:00
Frédéric Péters 510bd0c84f add compatibility with python 3 (#25642) 2018-08-12 17:48:35 +02:00
Benjamin Dauvergne 90d3f824d9 tests: fix no determinism in tests when using postgresql (#23134) 2018-04-12 16:30:03 +02:00
Benjamin Dauvergne a465f2c176 oauth2: add command oauth2-put-document (fixes #22948) 2018-04-09 09:37:21 +02:00
Benjamin Dauvergne 76532ef64a oauth2: add command oauth2-create-client (fixes #22949) 2018-04-09 09:34:25 +02:00
Benjamin Dauvergne 9a824087cc utils: fix make_url() use by list_to_pick view (fixes #22888)
Return callback to pick view takes an url argument, same name as the
first argument to make_url() :/
2018-03-29 17:00:50 +02:00
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 1dddba4baf oauth2: link authorizations and temp files to clients (#22717) 2018-03-22 11:47:47 +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 d780a085a9 fix typo "attachement" -> "attachment" (fixes #22676) 2018-03-21 19:03:34 +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
Jean-Baptiste Jaillet fe873ff083 add oauth2 access to get and put a document (#14147) 2017-11-06 17:37:00 +01:00