Generic SamsonPHP authentication module