diff --git a/fractal/__init__.py b/fractal/__init__.py index 9a90892..174de4e 100644 --- a/fractal/__init__.py +++ b/fractal/__init__.py @@ -1,6 +1,6 @@ """Fractal is a scaffolding toolkit for building SOLID logic for your Python applications.""" -__version__ = "4.1.2" +__version__ = "4.1.3" from abc import ABC diff --git a/fractal/contrib/fastapi/routers/default.py b/fractal/contrib/fastapi/routers/default.py index 9de07dc..ee609a8 100644 --- a/fractal/contrib/fastapi/routers/default.py +++ b/fractal/contrib/fastapi/routers/default.py @@ -148,11 +148,11 @@ def add_entity( except (ValueError, TypeError): contract.id = None _entity = contract.to_entity( - user_id=kwargs.get("sub"), account_id=kwargs.get("account") + user_id=kwargs.get("uid"), account_id=kwargs.get("account") ) return self.ingress_service.add( entity=_entity, - user_id=str(kwargs.get("sub")), + user_id=str(kwargs.get("uid")), specification=specification, ) @@ -171,13 +171,13 @@ def update_entity( else: _entity = contract.to_entity( id=entity_id, - user_id=kwargs.get("sub"), + user_id=kwargs.get("uid"), account_id=kwargs.get("account"), ) return self.ingress_service.update( entity_id=str(entity_id), entity=_entity, - user_id=str(kwargs.get("sub")), + user_id=str(kwargs.get("uid")), specification=specification, ) @@ -190,7 +190,7 @@ def delete_entity( ) -> Dict: self.ingress_service.delete( entity_id=str(entity_id), - user_id=str(kwargs.get("sub")), + user_id=str(kwargs.get("uid")), account_id=str(kwargs.get("account")), specification=specification, ) diff --git a/pyproject.toml b/pyproject.toml index 7d6fc96..af8cf32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fractal-toolkit" -version = "4.1.2" +version = "4.1.3" description = "Fractal is a scaffolding toolkit for building SOLID logic for your Python applications." authors = ["Douwe van der Meij "]