Fixed test suite failures when the auth plugin is not compiled in.
Merged the implementation to a new base tree.