Query-Based Security (QBS)

(formerly known as Timisoara Ticket Definition)

Nowadays the majority of web tools provide security per resource, i.e. the object to be secured is some sort of a directory in the site.

It seems to be mathematically possible to compute the credentials needed based on the queries used in a page rather than based on the page path! For example given a type (MDD), it should be possible to write Query Fragment Methods that define access rights to the CRUD (create-read-update-delete) operations on the respective type and on related types. Instead of being defined near the page/folder, the query based security (QBS) would be defined somewhere near the data types (model)

Query analysis for QBS should be done at page (or whatever other module) analysis. It should only be done once. Its results should be query fragments to execute (appended to other queries or separately)

Brief: