This article will assist you with the setup of an external Enterprise portal site using Auth0 user authentication mechanism.
Start by downloading the required KB 4133646 for Dynamics AX2012 R3.
Secondly, download the PDF file Dynamics-AX-2012-R3-Enterprise-Portal-Setup-with-Auth0. This document will describe all the steps required to setup your external Enterprise portal site using Auth0.