@param passwordColumn: Name of column containing the user password (or its hash)
@param passwordChecker: A lambda that compares the incoming password due what is stored in DB (plaintext comparison (not recommended, insecure), hash, decryption, etc.)
"""
self.dbpool=dbpool
self.userTable=userTable
self.usernameColumn=usernameColumn
self.passwordColumn=passwordColumn
self.passwordChecker=passwordChecker
defrequestAvatarId(self,credentials):
defsecured(privileges=None):
pass
'''
Main decorator for securing REST endpoints via roles