Add basic authentication and permissions