How to set up self-service account recovery with Auth0
This tutorial describes how to configure Nametag for self-service account recovery with Auth0. Once connected, your users can verify their identity with a government ID and a selfie, then reset their own MFA or password in your Auth0 tenant — without a help-desk ticket.
1. Create a machine-to-machine application in Auth0
Nametag calls the Auth0 Management API using a machine-to-machine (M2M) application that you create in your own tenant.
-
Sign in to the Auth0 Dashboard.
-
Go to Applications → Applications and press Create Application.
-
Choose Machine to Machine Applications, name it (for example, Nametag Recovery), and create it.
-
Authorize it for the Auth0 Management API.
-
Grant only these three scopes:
read:usersdelete:authentication_methodscreate:user_tickets
Note: Nametag never requests
update:usersordelete:users. It only looks up a user, removes their enrolled MFA factors, and issues a password-change ticket. -
From the application’s Settings tab, copy the Domain, Client ID, and Client Secret.
2. Connect Auth0 in the Nametag console
-
Sign in to Nametag at https://www.getnametag.com and press Configure.
-
Choose Auth0, then press Connect.
-
Enter the three values you copied from Auth0:
- Auth0 Domain — your tenant domain ending in
.auth0.com(for example,example.us.auth0.com). Use the tenant domain, not a custom sign-in domain. - Client ID
- Client Secret
- Auth0 Domain — your tenant domain ending in
-
Press Connect to Auth0. Nametag validates the credentials and confirms that the required scopes were granted. If a scope is missing, Nametag tells you which one, so you can grant it in Auth0 and try again.
Note: You enter your Auth0 credentials here — you never paste a Nametag key. Nametag stores the client secret encrypted and uses it only to perform resets for verified users.
3. Choose self-service permissions
Decide which actions verified users may perform:
- Reset MFA — removes the user’s enrolled authentication methods so they can enroll a new one.
- Reset password — issues a password-change link the user can follow to set a new password.
You can also set the minimum assurance required before any reset is allowed.
4. Synchronize users
Nametag synchronizes user accounts from your Auth0 tenant automatically. To synchronize immediately, press Sync now on the directory’s page.
5. Set up your recovery website
-
Choose a URL for your account-recovery site, hosted under a domain your users recognize (for example,
accounts.example.com). Nametag hosts the site. -
Point that host at Nametag with a
CNAMErecord targetingnametaghosted.com:accounts.example.com. IN CNAME nametaghosted.com. -
Email help@nametag.co to let us know your URL is ready, and we’ll finish setting up your site.
6. Direct your users
Send your users to the new URL to verify their identity and recover their accounts if they’re ever locked out. See the self-service account recovery end-user’s guide for what they’ll experience.