[feat][python] Add basic authentication (#17482)

3 files changed