Hi,

I have one proposal: extend auth_membership with a new "reference
auth_context" in order to support a multi-tenant architecture (single
web2py application with multiple tenants / contexts).

This would be optional, so that everything works exactly the same as
now, plus a new option to support "contexts".

This way, users would have context-sensitive roles, e.g. one same user
can have the "administrator" role in contextA, plus the same
"administrator" role in contextB, plus an X non-context role, etc.

Also the "has_membership" decorator would have to be extended to
support a new "context" optional parameter.

And all this would be fully compatible with the current design (since
"context" is optional).

What do you think?.

   Carlos

Reply via email to