Making doAuth protected