Add authentication and authorization mechanism