made authtype configurable