Add basic authentication functionality.