From 6d61eefa98c6a484a14bc399471d36a3721e244f Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Tue, 26 Mar 2024 09:56:38 +0100 Subject: [PATCH] fix scope --- README.md | 5 ++--- backend/src/config.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b1321f6..e30b1f3 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ It aims to enable data owners and data scientists to: This platform is composed of 3 main components: * **[Oxigraph](https://github.com/oxigraph/oxigraph) triplestore** containing the cohorts and their variables metadata, exposing a SPARQL endpoint only available to the backend API. + * The data stored in the triplestore complies with the custom **[iCARE4CVD OWL ontology](https://maastrichtu-ids.github.io/cohort-explorer/)**. It contains 3 classes: Cohort, Variable, and Variable category. + * **`backend/` server**, built with python, FastAPI and RDFLib. * **`frontend/` web app** running on the client, built with TypeScript, NextJS, ReactJS, TailwindCSS, and DaisyUI. @@ -38,9 +40,6 @@ This platform is composed of 3 main components: ## ☑️ To do -* [ ] Improve validation of uploaded data dictionaries. Make sure error message are helpful. -* [ ] Save mappings to triplestore using a new predicate `icare:mapped_concept`? -* [ ] Improve classes and predicates currently used to describe cohorts metadata files? * [ ] Integrate LUCE blockchain component. Should it be deployed separately, or as a service in the `docker-compose.yml`? ## 🧑‍💻 Development diff --git a/backend/src/config.py b/backend/src/config.py index 053e217..6f7e17f 100644 --- a/backend/src/config.py +++ b/backend/src/config.py @@ -18,7 +18,7 @@ class Settings: client_id: str = field(default_factory=lambda: os.getenv("CLIENT_ID", "")) client_secret: str = field(default_factory=lambda: os.getenv("CLIENT_SECRET", "")) response_type: str = field(default_factory=lambda: os.getenv("RESPONSE_TYPE", "code")) - scope: str = field(default_factory=lambda: os.getenv("SCOPE", "openid email read:permissions")) + scope: str = field(default_factory=lambda: os.getenv("SCOPE", "openid email")) jwt_secret: str = field( default_factory=lambda: os.getenv("JWT_SECRET", "vCitcsPBwH4BMCwEqlO1aHJSIn--usrcyxPPRbeYdHM") )