I am using TFS 2020 and try accessing Rest API
http://tfs:8080/tfs/DefaultCollection/<Project>/_apis/build/builds?definitions=12345&$top=1&statusFilter=all&api-version=6.0
using basic authentication (username and password) but getting below error.
headers = {'Authorization': 'Basic navjpidW5nYUAxZQ=='}
TF400813: Resource not available for anonymous access. Client authentication required.
httpsfor security reasons. Basic auth over http provides very little security.