Added support for preemptive authentication