Extract authenticate method from API authorize method