Describe how basic authentication credentials in URLs work.