I know you can input the Username, Password and Domain for a htpasswd protected URL using the following schema :
http://$username:$password@$Domain
eg :
http://sam:[email protected]
But would this work for an HTTPS Domain ? And if so would the Username and Password be encrypted in transit ?
There are a few issues with HTTP Basic Auth:
Of those, using SSL only solves the first. And even with that, SSL only protects until the webserver - any internal routing, server logging, etc, will see the plaintext password.
So, as with anything it's important to look at the whole picture.
Does HTTPS protect the password in transit? Yes.
Is that enough? Usually, no. (I want to say, always no - but it really depends on what your site is and how secure it needs to be.)
Complete credit to below answer (copied word to word)
https://security.stackexchange.com/questions/988/is-basic-auth-secure-if-done-over-https
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With