we are migrating MFA to Auth0. In our current application, we have a menu option which allow user to enroll MFA any time while they are in the application. But it doesn’t seem Auth0 provide a way to do it.
we have tried to use API to get enrollment URL with a ticket, but we can’t display this enrollment page in our application, Auth0 forbid using iframe. If we display the URL on the page, after enrollment, there is no way to go back to our application.
We have also tried to force user to go through post login action without the need to login again, but couldn’t make this work.
Thanks Suman for the quick response. with your approach, we need to build our own UI to allow user to select what factor to enroll, correct?
we want to use Auth0 enrollment page instead, is that doable? by using POST /api/v2/guardian/enrollments/ticket, we can get a URL back, we want to display this URL in our iframe or module window, but we can’t make it work because Auth0 doesn’t allow it.
// Instead of iframe/popup:
window.location.href = enrollmentUrl;
// Handle the return with a callback URL
// Auth0 will redirect back to your application