[feature/auth-refactor] Have a base auth class

PHPBB3-9734