Commit Graph

109 Commits

Author SHA1 Message Date
Maxime Alves LIRMM a9b109d17b [conf] put CONFIG out of app.py, add some details to debug routes 2020-07-10 12:57:03 +02:00
Maxime Alves LIRMM 2f283db823 [acl] more checks in connected decorator 2020-07-10 12:53:25 +02:00
Maxime Alves LIRMM 1087804e8a [conf] clean configuration options 2020-07-09 12:07:39 +02:00
Maxime Alves LIRMM 7d2bb39593 [cli] fixed typo in booleans 2020-07-09 10:39:53 +02:00
Maxime Alves LIRMM 13ac878a7c [test] add default DEBUG flag for pytest, add tests for jwt_middleware 2020-07-09 10:29:17 +02:00
Joël Maïzi 55ebe0bbdd FIX non lecture des params pour halfapi run. 2020-07-09 10:29:14 +02:00
Maxime Alves LIRMM 44948be228 [conf] removed HALFORM_DSN from the env parameters, added support for the
env_file uvicorn parameter (specified by --envfile for the halfapi "run"
command), added support for default environment variables in pytest.ini
2020-07-09 10:23:13 +02:00
Maxime Alves LIRMM@home 644e5c5d3d [conf] add envfile supprt / fix the bugs related to acl_caller_middleware / fix the bugs related to responses classes 2020-07-09 08:02:44 +02:00
Maxime Alves LIRMM@home f0d5eb7d92 post-rebase fixes 2020-07-08 17:40:40 +02:00
Maxime Alves LIRMM@home b28f651cf8 [test] add testing routes for debug 2020-07-08 17:36:25 +02:00
Maxime Alves LIRMM 15cd059705 [jwt] fix jwt middleware and add some tests 2020-07-08 17:28:14 +02:00
Joël Maïzi 7b134f2dfb FIX non lecture des params pour halfapi run. 2020-07-08 17:28:14 +02:00
Maxime Alves LIRMM 24673e4408 [exceptions] add exception handlers, moved AclCallerMiddleware to lib 2020-07-08 17:19:31 +02:00
Maxime Alves LIRMM@home 3fda051180 [middleware] put AclCallerMiddleware in lib file 2020-07-08 17:12:58 +02:00
Maxime Alves LIRMM 17261f7da9 [middleware] pass domain's acl module as parameter 2020-07-07 12:59:52 +02:00
Maxime Alves LIRMM 1ebda6b2c7 organigramme branch master in deps 2020-07-07 11:49:43 +02:00
Maxime Alves LIRMM 26e0bb8716 [middleware] convert acl_middleware function to class 2020-07-07 11:20:24 +02:00
Maxime Alves LIRMM 65e0d09ff8 [middleware] removed decorator from acl_middleware 2020-07-07 11:10:38 +02:00
Maxime Alves LIRMM 4be18f8344 [middleware] add lib/acl_middleware 2020-07-07 11:02:53 +02:00
Maxime Alves LIRMM 1aa03d9077 @connected : getattr -> hasattr 2020-07-07 10:34:17 +02:00
Maxime Alves LIRMM 8b110d0fcd set organigramme branch to devel 2020-07-06 08:59:58 +02:00
Maxime Alves LIRMM fe8f90ccda Mount openapi.json on the right path 2020-07-06 08:39:35 +02:00
Maxime Alves LIRMM e9adabe627 add poetry.lock 2020-07-06 08:13:53 +02:00
Maxime Alves LIRMM 35a6357182 change version specifications in pyproject.toml 2020-07-06 08:11:43 +02:00
Maxime Alves LIRMM@home fb156af905 ajout de la gestion des paramètres pour halform 2020-07-06 07:53:34 +02:00
Maxime Alves LIRMM@home 37104948ca working cli dbupdate (poetry run halfapi dbupdate) 2020-07-05 14:49:13 +02:00
Maxime Alves LIRMM@home 5cad163a39 some documentation, juste enough to start a halfAPI server 2020-07-04 05:29:27 +02:00
Maxime Alves LIRMM@home b879840491 uvicorn not optional 2020-07-04 05:15:49 +02:00
Maxime Alves LIRMM@home 5280b45b8d uvicorn not optional 2020-07-03 22:15:25 +02:00
Maxime Alves LIRMM@home 5ad2714205 typo in pyproject 2020-07-03 21:49:31 +02:00
Maxime Alves LIRMM 70ee654ed9 DSN -> SECRET dans middleware 2020-07-03 21:39:59 +02:00
Joël Maïzi 0a755dc76f [WIP] Import halfapi OK dans test_jwt_middleware. 2020-07-03 21:39:59 +02:00
Joël Maïzi dd354648f8 [WIP] Pb import halfapi dans test_jwt_middleware. 2020-07-03 21:39:59 +02:00
Joël Maïzi f423d78278 Fix test. 2020-07-03 21:39:59 +02:00
Maxime Alves LIRMM@home 81613f0e6f ajout de la gestion des paramètres pour halform 2020-07-03 21:39:57 +02:00
Maxime Alves LIRMM@home 6dec827a0c set uvicorn as optional dep 2020-07-03 21:25:35 +02:00
Maxime Alves LIRMM@home 1d805abb13 pyproject.toml correction for poetry use, setup.py removal (useless)
use the poetry install -E organigramme option to install the domain in
the virtual environement
2020-07-03 21:25:35 +02:00
Maxime Alves LIRMM@home b4b7587e3c fixed typo in authors 2020-07-03 21:25:35 +02:00
Maxime Alves LIRMM d9a40474fc upd_cli.py 2020-07-03 21:25:35 +02:00
Maxime Alves LIRMM@home f91d0bcf5c ajout de la gestion des paramètres pour halform 2020-07-03 21:25:32 +02:00
Maxime Alves LIRMM@home 0a84c84e77 ajout de pyproject.toml 2020-07-03 21:24:49 +02:00
Maxime Alves LIRMM@home c960638a40 màj du cli 2020-07-03 11:58:26 +02:00
Maxime Alves LIRMM 6968feb59e merge avec cli_update_db 2020-07-03 11:58:13 +02:00
Maxime Alves LIRMM@home 3021bd5f28 ajout de pyproject.toml 2020-07-03 11:54:44 +02:00
Maxime Alves LIRMM 364c246ef4 gestion des variables d'environement dans le cli 2020-07-03 11:49:59 +02:00
Maxime Alves LIRMM@home baec9f172f màj des dépendances 2020-07-02 16:32:55 +02:00
Joël Maïzi dada376016 Ajout JWTAuthenticationBackend (from https://github.com/amitripshtos/starlette-jwt/blob/master/starlette_jwt/middleware.py). 2020-07-02 15:11:11 +02:00
Maxime Alves LIRMM d1e3198441 ajout des fonctions de DB dans le cli 2020-07-02 11:40:57 +02:00
Maxime Alves LIRMM b532aac634 déplacement models dans dossier module et rajoute du dossier dans setup.py 2020-07-02 11:39:50 +02:00
Maxime Alves LIRMM d8729b1d49 ajout des modèles dans le dépot halfAPI 2020-07-02 11:30:53 +02:00