Adds user authentication and authorization