Adds basic authentication.

[Finishes #71899094]