set basic auth when configured closes #490