You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Model security: roles, permissions and authentication #644
Users can't model security concerns in BESSER: roles, permissions on classes or operations, and authentication flows. Access rules end up in prompts or in hand-written code, outside the model.
This is about modeling security. Hardening the generated applications is tracked separately.
Describe the solution you'd like
A security sub-language (or an extension of the structural metamodel) to declare roles, the permissions each role has on classes, attributes and operations (create / read / update / delete / execute), and the authentication method.
Editor support for defining it alongside the class diagram.
Generators that consume it: role checks in the generated backend, and screens or actions hidden from roles without access in the generated frontend.
Modeling assistant support, so that "only admins can delete orders" becomes part of the model.
Describe alternatives you've considered
Expressing access rules as OCL constraints. That covers some data-level rules, but not roles, authentication or per-operation permissions.
@AtefehNirumandJazi work should covere this. At least she has already implemented the modeling part (and the generation for databases) as part of the policyDSL
Activity
jcabot commentedon Oct 20, 2026
@AtefehNirumandJazi work should covere this. At least she has already implemented the modeling part (and the generation for databases) as part of the policyDSL