Added support for custom authentication backend.