Authentication base class with setting

Tests passed.