Turn on basic auth if flag exists