Restrict new-user signup

I’m looking to use Auth0 as a way for new users to sign up to my web app.
I don’t want to allow anyone to register for this, but only users that bought our hardware.
1 hardware system can have multiple users.

I was thinking of implementing it via a pre user registration hook.
Ideally, the user would register, then is prompted for the machine’s serial number, if the SN exists, then they are allowed to complete the registration process.

Is this possible to do with Auth0? And is there a repository of similar embedded functionality?

Hi,
I think you are on the right track with Pre User Registration action.
If you are using universal login you want to add a new custom field to capture machine’s serial number.
This information will be available as user metadata later in the action code.

Next step is to call your own api from the action code to verify the machine’s serial number.
If it’s valid let user through, otherwise deny registration with an error.

Here is a gist on how to customise universal login to get machine’s serial number as part of user registration.

Read the full guide here for customising login form here.

And here is a sample action page imagining your use case. The code is not tested but should be close to what you need.

wow, pazel, thank you so much for this!

I’m gonna start playing around with this and let you know how it went

Hey team!

This topic seems related to our new EA feature, Forms for Actions, which rolled out of the beta stage on May 7th. Our Product team prepared the whole Documentation page with examples of Use cases. Forms for Actions. If you find yourself having questions regarding this new feature for the next two weeks, we are hosting an Ask Me Anything session. Our Product Expert will provide comprehensive written answers on May 21st from 8 AM to 10 AM PST.
Find out more about Forms for Actions and learn more about AMA.

Thanks!
Dawid