The configuration of the authenticator module example is defined in a descriptive way. If you want to learn more about how to define a configuration by declaring first the data members and then the description for introspection, you will find an example at Descriptive configuration declaration example
#include <string>
class MyAuthenticationConfig
{
public:
{
}
MyAuthenticationConfig( const char* title, const char* logprefix, const char* subsection)
:_Wolframe::serialize::DescriptiveConfiguration( title, "authentication", logprefix, getStructDescription())
{
}
};
class MyAuthenticatorSlice
{
public:
{
}
{
return "MyAuthenticatorSlice";
}
{
static const std::string my_authenticatorID("myauth");
return my_authenticatorID;
}
virtual void messageIn(
const std::string& msg)
{
}
{
}
{
}
{
}
{
}
};
class MyAuthenticationUnit
{
public:
MyAuthenticationUnit( const MyAuthenticationConfig& cfg);
{
return "MyAuthentication";
}
const char**
mechs()
const
{
}
{
}
};
WF_AUTHENTICATOR( "my authenticator", MyAuthenticationUnit, MyAuthenticationConfig)