Add BaseAuthentication class