adding public function to hook into ejaaberd extauth_program