OSM is slowly deprecating HTTP Basic Auth and OAuth 1.0a in favor of OAuth 2, see [announcement](https://www.openstreetmap.org/user/pnorman/diary/401157) and https://github.com/openstreetmap/operations/issues/867.