Daniel Hofer, Aya Mohamed, Josef Küng,
"Modifying Neo4j?s Object Graph Mapper Queries for Access Control"
, in Eric Pardede, Pari Delir Haghighi, Ismail Khalil, Gabriele Kotsis: Information Integration and Web Intelligence, Serie Lecture Notes in Computer Science (LNCS), Vol. 13635, Springer, Cham, Seite(n) 421?426, 2022, ISBN: 978-3-031-21046-4
Modifying Neo4j?s Object Graph Mapper Queries for Access Control
Sprache des Titels:
Information Integration and Web Intelligence
A web application without access control is hardly usable. At the same time, we want to avoid boilerplate and use frameworks automating the communication between applications and databases. However, if we use the full potential of the mapper frameworks, the possibilities for access control are getting limited. Consequently, a trade-off between code complexity and mapper functionality must be found. In this work, we use object-graph mappers and at the same time avoid code duplication and entity-type-specific access control implementations. We do so by intercepting and changing the communication between our application code and the mapper framework so it generates queries already containing access-control filters. Thereby, we achieve authorization already on database access. With this approach only entities authorized for the currently active user are loaded, reducing the risk of data leaks. Furthermore, the developers are not required to implement access control on a per-entity-type basis.