auth: Use phan templates for getRequestByClass