Implement authentication from API