new C++ object for authentication