fixed reading the REST auth method from config