Allow the auth. in domain config to be a Class