net.liftmodules.salatauth
User role entity class.
It's up to you to store the roles into MongoDB. For example you can use SalatDAO:
object RoleDAO extends SalatDAO[Role, ObjectId](collection = MongoConnection()("mydb")("roles"))
Also you need to define rolesCollection in your Boot class:
SalatAuth.rolesCollection.default.set(myRoleCollection)
the role name is the primary id for the collection
role description or other comment
a set of permissions for this role
User role entity class.
It's up to you to store the roles into MongoDB. For example you can use SalatDAO:
Also you need to define rolesCollection in your Boot class:
the role name is the primary id for the collection
role description or other comment
a set of permissions for this role