Added configurable basic auth