Hi there to the whole group!
I have a simple (for you l33t mongoose developers ) question I would like to get some help with.
The whole picture looks like this:
I have 5 collections (USER , GROUPS , SECTIONS , ROLES , RIGTHS )in MongoDB and I need to interconnect them in a way that complex authentification is possible.
USER: to this collection a document - user can be added and this is the main document I would like to authenticate then
GROUPS: documents consist of one or more sections - a group has one or more SECTION bind to the "GROUP name" property
SECTIONS: sections of the site that can be seen
ROLES: like "admin" , "user",...
RIGHTS: are the rights that are allowed ( I would like to make them read only )
So what I want to do is: create a user that is a part of a group that has 2 or more SECTIONs added ( user can see section blog and section contact) to them and then set different ROLES for the SECTIONS.
In one SECTIONS he/she would be a "admin" and the other only "user". NOTE: the user can also be a part of 1 or more GROUPS and for the different GROUPS different SECTIONS and ROLES apply.
I'm not asking for any solutions on the spot, but some help how to start.
In fact any light on the topic or referral would help a ton.
Regards from Austria,
nVVEBd