Adding AuthQueryFactory to generate AuthQuery