Revert "Revert "Add basic auth""

This reverts commit 34ae2cafce433fa06ba625c117e9734048710b7c.