Implement authentication and its configuration