Commit Graph

24 Commits

Author SHA1 Message Date
Valentin Deniaud 4c419c0695 misc: bump black version (#75442) 2023-03-29 14:49:55 +02:00
Benjamin Dauvergne 6bea11793f rest_authentication: add flag to differentiate anonymous service users (#70933) 2022-11-14 18:05:23 +01:00
Valentin Deniaud a107b7ef0e misc: apply pyupgrade (#69708) 2022-09-29 15:23:49 +02:00
Emmanuel Cazenave bc959e928e rest_authentication: add api client authentication (#67085)
gitea-wip/hobo/pipeline/head There was a failure building this commit Details
gitea/hobo/pipeline/head Something is wrong with the build of this commit Details
2022-09-05 14:10:54 +02:00
Frédéric Péters 5e55e3cda7 trivial: update FieldDoesNotExist import location for django 3.2 (#64300) 2022-05-17 23:02:42 +02:00
Frédéric Péters bd178920aa misc: declare an empty ou attribute in fake signature users (#62190) 2022-02-25 16:30:36 +01:00
Benjamin Dauvergne 9b46019149 rest_authentication: improve signature errors reporting (#57450) 2021-10-21 08:18:11 +02:00
Frédéric Péters 872f39774a trivial: apply black 2021-05-14 18:40:09 +02:00
Frédéric Péters fb3627eaf8 misc: remove usage of CallableTrue (#41239) 2021-04-24 10:29:44 +02:00
Benjamin Dauvergne 0be901c7a3 rest_authentication: accept any parameters in AnonymousAuthenticServerUser.has_perm (#52104) 2021-03-16 16:52:44 +01:00
Frédéric Péters 9dc31f3386 misc: restore usage of CallableTrue (#41391)
This reverts commit ca5168f203, as it is
still required by djangorestframework 3.4 used in stretch.
2020-04-06 22:25:59 +02:00
Frédéric Péters ca5168f203 misc: remove usage of CallableTrue (#41239) 2020-04-02 08:45:30 +02:00
Benjamin Dauvergne 9225efdb96 rest_authentication: raise APIError for signature errors (#39911) 2020-03-13 17:01:44 +01:00
Thomas NOËL ce798bc587 dj22: use user.is_authenticated as a boolean or callable (#37503) 2019-11-07 01:22:36 +01:00
Benjamin Dauvergne a14ced4d18 dj22: use user.is_authenticated as a boolean (#36708) 2019-10-19 19:14:34 +02:00
Frédéric Péters cf70b636e0 general: update for python 3 (#22981) 2018-06-20 10:37:44 +02:00
Frédéric Péters 9f4ad342e8 misc: update rest-framework user look up for new _meta API (#21098) 2018-03-22 08:15:18 +01:00
Benjamin Dauvergne 81bbf1ccf6 allow all authentic APIs to publik services (fixes #12599) 2016-07-15 15:49:18 +02:00
Benjamin Dauvergne 504998172c add filter_by_perm() method to AnonymousAuthenticServiceUser (fixes #12580)
It lets publik services see all objects.
2016-07-15 15:00:32 +02:00
Benjamin Dauvergne 80b6a26ca4 rest_authentication: allow having user named after service origin (fixes #10691)
It allows managing services' permissions finely.
2016-04-20 15:13:26 +02:00
Frédéric Péters f5021b9ac5 general: extend PublikAuthentication to work with mellon applications (#9975) 2016-02-15 10:57:43 +01:00
Benjamin Dauvergne 1e33b4c3e8 add customizable anonymous service user class (fixes #9814)
Actual class is renamed AnonymousAuthenticServiceUser and a new one is added
named AnonymousAdminServiceUser. By default anonymous service authentication is
forbidden, you must set the HOBO_ANONYMOUS_SERVICE_USER_CLASS setting to
activate it.
2016-01-29 17:33:45 +01:00
Thomas NOËL 5f61dd3ae1 hobo/rest_authentication: remove useless import (#8896) 2016-01-28 16:52:11 +01:00
Benjamin Dauvergne 2ba0be1e8a add rest_framework authentication module for authentic2 (fixes #8896) 2016-01-26 03:26:44 +01:00