are people really suggesting basic auth again, is it 1993 outside? Basic auth is horrendous security practice, you're passing a header that has your user and password in plaintext, it's insane to suggest that in 2019
plus what's in this comment https://security.stackexchange.com/questions/988/is-basic-au...