Commit Graph

  • 78c75cd60e [tests] add dummy_project_router tests for path-based routers (without ROUTES variable) Maxime Alves LIRMM@home 2021-06-14 16:34:58 +0200
  • eb68d06ac0 [0.5.2] /halfapi/acls crash if acl attribute does not exist on a route Maxime Alves LIRMM 2021-06-07 19:40:04 +0200
  • 3fb6fb4ded [0.5.1] Reactivation de la route "/halfapi/acls" (bug lors de multiples de domaines) Maxime Alves LIRMM 2021-06-07 19:28:02 +0200
  • e5a278c84c [release] 0.5.0 Maxime Alves LIRMM 2021-05-28 22:30:48 +0200
  • 904783b134 [deps] Maxime Alves LIRMM 2021-05-28 22:30:39 +0200
  • e0b06f51d5 [acl decorator] when check flag is activated, returns a 200 status code with empty body if no acl has passed Maxime Alves LIRMM 2021-05-28 22:23:20 +0200
  • 8ca94ab7ed [acl decorator] possibility to decorate functions with "@route_acl_decorator" Maxime Alves LIRMM 2021-05-28 22:22:05 +0200
  • e4e04c6ac1 [JWTmw] add CheckUser to be used when using the "check" flag. Add "user_id" query param to check access of a specific user to a route Maxime Alves LIRMM 2021-05-28 22:18:58 +0200
  • 0e5a8ede9d [test] test of lib.acl Maxime Alves LIRMM 2021-05-28 22:13:48 +0200
  • a0c41d7d78 [tests] jwt, use of TestClient instead of requests Maxime Alves LIRMM 2021-05-28 22:12:53 +0200
  • a82fd6def0 [acl] ajout de l'acl private (test purposes) Maxime Alves LIRMM 2021-05-28 22:02:35 +0200
  • 9a9bc16bbc [tests] déplacement des fixtures jwt dans conftest Maxime Alves LIRMM 2021-05-28 21:54:45 +0200
  • ea1f54cb82 [tests] JWTmw - flags check et user_id Maxime Alves LIRMM 2021-05-28 12:41:23 +0200
  • 3c6713b5e2 [tests] add JWTMw test for query without tokens (must return Unauth user) Maxime Alves LIRMM 2021-05-28 12:27:35 +0200
  • c7e29e399b [tests] use "isinstance" instead of "type" Maxime Alves LIRMM 2021-05-28 12:26:51 +0200
  • 89a5f3aa52 [tests] nettoyage test jwt Maxime Alves LIRMM 2021-05-28 12:26:27 +0200
  • 933f456c86 Montage des routes uniquement si les variables DOMAINDICt et SECREt sont présentes Maxime Alves LIRMM@home 2021-04-27 08:26:48 +0200
  • 5276833afe [lib/domain] ajout du dossier courant dans le path pour import de librairies dans le dossier du projet Maxime Alves LIRMM@home 2021-04-24 23:54:18 +0200
  • 10b1960f4e nettoyage / commentaires / renommage de variables - JWTUser.id deviens JWTUser.identity Maxime Alves LIRMM@home 2021-04-24 08:56:18 +0200
  • a2fb70f84b DomainMiddleware ne vérifie plus les domaines non concernés par la première partie du path (optimisation vitesse) Maxime Alves LIRMM@home 2021-04-23 12:51:51 +0200
  • 795ca3dcc0 [decorator] ajout du décorateur "args_check" pour automatiser la vérification des args requis/optionels Maxime Alves LIRMM@home 2021-04-22 23:36:34 +0200
  • 5b67d938e2 Ajout du timing middleware pour le mode debug Maxime Alves LIRMM@home 2021-04-22 22:09:05 +0200
  • 89ec439d3e ajout du header x-args-required et x-args-optional Maxime Alves LIRMM@home 2021-04-22 22:05:10 +0200
  • b5ef4a12d1 Ajout du header http "x-acl" qui renseigne l'acl qui a passé dans une requête Maxime Alves LIRMM@home 2021-04-22 21:08:53 +0200
  • 4eb23fd189 Ajout de l'option "check" permettant de connaître l'acl qui passe Maxime Alves LIRMM@home 2021-04-22 17:30:21 +0200
  • e1c3d61207 Rajout de l'argument "doc" sur la route /halfapi/acls Maxime Alves LIRMM@home 2021-04-22 11:45:12 +0200
  • cd0df35496 [tests][lib/responses] format des dates ORJSON + update deps (fix bug dates) Maxime Alves LIRMM@home 2021-03-12 19:01:16 +0100
  • 607a288e28 [debug] ajout des routes /error/{code:str} et /exception Maxime Alves LIRMM@home 2021-03-12 18:59:30 +0100
  • a3d546905c [update] fixage des versions des dépendances, fixage de python >= 3.7 Maxime Alves LIRMM@home 2021-01-26 01:04:05 +0100
  • fecdaa29e5 [update] mise à jour du Pipfile.lock et de jwt_middleware Maxime Alves LIRMM@home 2021-01-26 00:58:59 +0100
  • f36a2d8e06 [ORJSONResponse] Handle sets. Joël Maïzi 2021-01-25 10:44:07 +0100
  • 54e215b6ff [test][nf] added basic test methods for orjsonresponse Maxime Alves LIRMM@home 2021-01-23 09:30:53 +0100
  • a5300962ad [responses] cast set to list. Joël Maïzi 2021-01-23 08:49:07 +0100
  • d21ee175e9 [responses] cast special types in ORJSONResponse Maxime Alves LIRMM 2021-01-14 10:55:02 +0100
  • f8e546007c [conf] lower loglevel string Maxime Alves LIRMM@home 2020-12-04 18:12:42 +0100
  • 8d414f2bdd [config] ajout de l'option LOGLEVEL (info|debug|warning...) Maxime Alves LIRMM@home 2020-12-04 10:13:54 +0100
  • e61dd7eeaa [logs] change level de certains messages Maxime Alves LIRMM@home 2020-12-03 18:49:37 +0100
  • f4ba64f186 [debug] added /halfapi/log as a debug route that generates all type of logs Maxime Alves LIRMM@home 2020-11-12 17:56:05 +0100
  • d4a6bb1a04 [domainMW] set "acl_pass" variable into scope Maxime Alves LIRMM@home 2020-11-09 21:25:07 +0100
  • 5d4b8d38b4 0.3.1 Maxime Alves LIRMM@home 2020-11-09 21:26:31 +0100
  • 9516eaa6d7 RAISES when a router import fails - test your domains routers FFS Maxime Alves LIRMM@home 2020-11-04 17:02:19 +0100
  • 56657036e4 Added logging for acls Maxime Alves LIRMM@home 2020-11-04 13:32:33 +0100
  • 73d49031a7 handle configuration when domain does not exist Maxime Alves LIRMM@home 2020-11-04 12:31:11 +0100
  • 4782764059 add request.scope['config'] when there is a section with the domains name in the project's configuration Maxime Alves LIRMM@home 2020-11-04 05:01:26 +0100
  • 61aec6871a [release][v0.3.0] Updated version to 0.3.0 Maxime Alves LIRMM@home 2020-10-31 17:48:55 +0100
  • 9a4f90d36b /lib/domain - try for ImportError bug Maxime Alves LIRMM@home 2020-10-27 13:06:27 +0100
  • 64e60343bf [conf] Clean of DOMAINS global variable Maxime Alves LIRMM 2020-10-20 09:23:11 +0200
  • 4df34b5d87 logging Maxime Alves LIRMM 2020-10-20 09:09:21 +0200
  • e121504e49 Merge branch 'devel_' of gite.lirmm.fr:malves/halfapi into devel_ devel_ Maxime Alves LIRMM@home 2020-10-27 10:11:06 +0100
  • 8bfdc8f428 changed logger to uvicorn Maxime Alves LIRMM@home 2020-10-27 10:10:35 +0100
  • 24c68b51f2 [lib] ORJSONResponse can now accept specific encoders Maxime Alves LIRMM 2020-10-26 15:12:03 +0100
  • e4fb3b8bb1 [conf] Clean of DOMAINS global variable Maxime Alves LIRMM 2020-10-20 09:23:11 +0200
  • 1cd1bd74a1 logging Maxime Alves LIRMM 2020-10-20 09:09:21 +0200
  • d31efe3cc4 [deps] removed half_orm from dependencies Maxime Alves LIRMM 2020-10-20 08:25:50 +0200
  • e590bc31fe [doc] lib/domain, lib/domain_middlware Maxime Alves LIRMM 2020-10-07 16:13:54 +0200
  • 3959e6d614 [tests] add dummy_domain as a testing dependency (because domains can't be "not installed" in sys.path) Maxime Alves LIRMM 2020-10-07 15:51:24 +0200
  • 1e1ff2fb69 [routes] skip acls that are falsy Maxime Alves LIRMM 2020-10-07 15:50:50 +0200
  • 63b73a2bc1 [middleware][domain] load api and acl objects at each call (TODO: use a cache) Maxime Alves LIRMM 2020-10-07 15:49:49 +0200
  • 710d390b49 [cli][conf] suppression of BASE_DIR option (now defaults to os.getcwd) Maxime Alves LIRMM 2020-10-07 15:48:48 +0200
  • cb5724b4fa [doc] lib/domain_middleware Maxime Alves LIRMM 2020-10-07 13:37:31 +0200
  • 23bd876c4c [conf] fix list comprehension Maxime Alves LIRMM 2020-10-07 09:53:21 +0200
  • 40547ddf30 [tests][OK] Using a dummy_domain, adding it and listing it's routes Maxime Alves LIRMM 2020-10-07 09:52:23 +0200
  • f5ebabbcd4 [refactor] update to avoid using global variables, and configuration are not stored in /etc/half_api anymore Maxime Alves LIRMM 2020-10-07 09:50:46 +0200
  • 781736c151 [logs] print -> logger lib.domain Maxime Alves LIRMM 2020-10-07 09:19:24 +0200
  • acb0a46904 [deps] add PyYAML to dependencies Maxime Alves LIRMM 2020-10-07 07:25:59 +0200
  • b651d90f0e [cli] add entry point to be just "halfapi" in Pipfile (__main__.py) Maxime Alves LIRMM 2020-10-07 07:02:15 +0200
  • 0a34948b98 [cli] switch halfapi import to relative imports in cli.py Maxime Alves LIRMM 2020-10-07 07:01:03 +0200
  • c41d0d8f8f [deps] jwt->PyJWT in Pipfile Maxime Alves LIRMM 2020-10-07 06:56:21 +0200
  • 91ea25791b [doc] lib/domain.py annotation and comments Maxime Alves LIRMM 2020-10-07 06:52:12 +0200
  • 0cd7c987e5 pylint lib/acl.py Maxime Alves LIRMM 2020-10-05 11:36:17 +0200
  • 6653a0cd0a Fix wrong dependency jwt -> pyjwt. Joël Maïzi 2020-10-05 11:39:55 +0200
  • 2d51f260cd [clean] remove cli/lib dir Maxime Alves LIRMM 2020-10-05 11:33:28 +0200
  • 8fc1ba6c91 [doc] cli/domain.py Maxime Alves LIRMM 2020-10-05 11:31:53 +0200
  • 9753f4be95 [doc] cli/run.py Maxime Alves LIRMM 2020-10-05 11:30:18 +0200
  • 584e0b6584 [doc] cli/run.py Maxime Alves LIRMM 2020-10-05 11:29:17 +0200
  • 82e2ccbdbc [tests] fix tests according to abfaf2e1 Maxime Alves LIRMM 2020-10-05 11:28:50 +0200
  • a6f2187032 [doc][style] cli/init.py Maxime Alves LIRMM 2020-10-05 11:23:44 +0200
  • 1ee5da1588 [tests][jwt] fixs tests according to abfaf2e1 Maxime Alves LIRMM 2020-10-05 11:17:55 +0200
  • 1d0d3563cb [style] Clean cli/__init__.py Maxime Alves LIRMM 2020-10-05 11:10:34 +0200
  • 91581f9ae6 [docs][style] cli/config.py Maxime Alves LIRMM 2020-10-05 11:10:00 +0200
  • 6ac0b5acd9 [doc] cli/cli.py Maxime Alves LIRMM 2020-10-05 11:08:27 +0200
  • 77598b8453 [doc][style] document fonctions and fix variable names Maxime Alves LIRMM 2020-10-05 11:04:29 +0200
  • ad1fed7117 [doc] add docstring to conf.py Maxime Alves LIRMM 2020-10-05 10:57:40 +0200
  • 59ed5884ce [style] rename exceptions (e) as exc (pep8 style) Maxime Alves LIRMM 2020-10-05 10:21:09 +0200
  • 5c4e81d5d2 [jwt_mw] Refuse DEBUG tokens in PROD mode with websockets Maxime Alves LIRMM 2020-10-05 10:19:52 +0200
  • 21950aa6cd [cli] remove lib/db Maxime Alves LIRMM 2020-10-05 10:15:14 +0200
  • abfaf2e1ea [acls] Fix wrong key in payload for decoded JWT. Joël Maïzi 2020-10-05 10:48:00 +0200
  • 333aca9e2c [app] clean code Maxime Alves LIRMM 2020-10-05 10:09:01 +0200
  • b6e511a96d [lib][domain/routes] clean code, use "yield from" Maxime Alves LIRMM 2020-10-04 18:09:23 +0200
  • deb41be3e8 [deps] added pylint as devdep Maxime Alves LIRMM 2020-10-04 17:27:24 +0200
  • 429b26dec6 clean code + logs in conf Maxime Alves LIRMM 2020-10-04 17:27:02 +0200
  • c603727190 [test] adjust test_gen_router_routes to fit the new behaviour Maxime Alves LIRMM 2020-10-04 17:26:36 +0200
  • 74e0b3dc54 [acls] treat decorator as acl in route decorator Maxime Alves LIRMM 2020-09-30 10:42:58 +0200
  • 31878d971e [routes] Add halfapi routes in production. Joël Maïzi 2020-09-30 10:31:52 +0200
  • b89e03746f [acls] Allows decorators to be used as acls (fct=acl.public). Maxime Alves LIRMM 2020-09-30 10:12:24 +0200
  • 79210e503e [acls] /halfapi/acls posé Maxime Alves LIRMM 2020-09-30 08:07:55 +0200
  • 360f59b6ba [schema] fixes non-str keys in ORJSONResponse Maxime Alves LIRMM 2020-09-29 15:29:54 +0200
  • 7d6bc2c181 [router][api] Fix GET / Joël Maïzi 2020-09-29 15:08:35 +0200
  • 0a94f71dad [routing] Fix api representation (remove duplicates and fct). Joël Maïzi 2020-09-29 13:35:58 +0200
  • e223c0791c [routing] fix route description when there is multiple verbs Maxime Alves LIRMM 2020-09-29 11:12:45 +0200