Optionally enable basic auth