CMS-4353 Implement login method in AuthResource