Add authorization to mercury engine