Revert "Remove auth module"

This reverts commit be2a3ae41a1377ff8a26cc2ceb88f3826d889e6d.