Commit Graph

18 Commits

Author SHA1 Message Date
Benjamin Dauvergne 7ab9a10a6c add copyright notices 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 cbf2f6132b oauth2: improve views (#22934)
- show client name in confirmation and authorization view
- in document put authorize view show a thumbnail of the new document
  and a link to download it.
- if document is already in the portfolio, still show information on the
  client and document.
- factorize returning of the document.
2018-04-04 15:53:22 +02:00
Frédéric Péters ca0b908387 move oauth2 templates in a fargo/ subdirectory (#22920) 2018-03-30 13:51:02 +02:00
Benjamin Dauvergne d813e2b167 oauth2: improve logs with new link 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 fc6119683b share make_url() with fargo, simplify URL building code (#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 d780a085a9 fix typo "attachement" -> "attachment" (fixes #22676) 2018-03-21 19:03:34 +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
Jean-Baptiste Jaillet fe873ff083 add oauth2 access to get and put a document (#14147) 2017-11-06 17:37:00 +01:00