# I need to pre-authorize people before they can sign up but it looks like anyone can create a login to my app

**URL:** <https://community.auth0.com/t/i-need-to-pre-authorize-people-before-they-can-sign-up-but-it-looks-like-anyone-can-create-a-login-to-my-app/175966>\
**Category:** Get Help\
**Tags:** user-invitation, user-management\
**Created:** [January 29, 2025, 10:34am UTC](https://community.auth0.com/t/i-need-to-pre-authorize-people-before-they-can-sign-up-but-it-looks-like-anyone-can-create-a-login-to-my-app/175966 "2025-01-29T10:34:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bill.rebey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bill.rebey/32/72075_2.png) [@bill.rebey](https://community.auth0.com/u/bill.rebey)\
**Post date:** [January 29, 2025, 10:34am UTC](https://community.auth0.com/t/i-need-to-pre-authorize-people-before-they-can-sign-up-but-it-looks-like-anyone-can-create-a-login-to-my-app/175966/1 "2025-01-29T10:34:34Z")

</div>

I’m new to Auth0, so please allow some room for my own lack of knowledge about Autho0 features.

My product is an included digital product that comes with the purchase of a physical product. Before allowing a potential user access to my product, I want to validate them by asking for a sales channel (Amazon, WalMart, my own web site, etc.) and their order number.

Only after I’ve verified that they are a customer do I want to allow them to create a set of login credentials with Auth0. It seems like just anyone with a link to the login page can get an account, though.

How do I restrict potential users to just those that meet some pre-qualification criteria like I’ve mentioned above? I can of course handle the pre-authorization lookup on my end, but I don’t see how to use a “Go/No-Go” decision to restrict users from creating an account.

Can I get a pointer to some docs on how to do this kind of thing?

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 29, 2025, 11:34am UTC](https://community.auth0.com/t/i-need-to-pre-authorize-people-before-they-can-sign-up-but-it-looks-like-anyone-can-create-a-login-to-my-app/175966/3 "2025-01-29T11:34:58Z")

</div>

Hi @bill.rebey

Welcome to the Auth0 Community!

Thank you for posting your question, for the described flow I would advice to you to go with the Pre-user Registration Trigger Action, that will make a call to the 3rd party sales channel and based on the feedback deny or allow the registration to your application. You can check the docs about that here → [Pre-user Registration Trigger](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/pre-user-registration-trigger#store-a-user-id-from-another-system-in-the-user-profile)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![bill.rebey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bill.rebey/32/72075_2.png) [@bill.rebey](https://community.auth0.com/u/bill.rebey)\
**Post date:** [January 30, 2025, 12:25am UTC](https://community.auth0.com/t/i-need-to-pre-authorize-people-before-they-can-sign-up-but-it-looks-like-anyone-can-create-a-login-to-my-app/175966/4 "2025-01-30T00:25:24Z")

</div>

This got me a long way. Thanks!

In my trigger code, I’ll have to call back to my own server on some pseudo-secured endpoint to look up the order number of the user that’s trying to sign up for an account.

I’m imaging a simple API call through an XMLHttpRequest object, unless you tell me there’s some other, preferred way to make such a call.

Is there a way that I can securely include a static API key or something in the calls from the Trigger script to my server?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 13, 2025, 12:25am UTC](https://community.auth0.com/t/i-need-to-pre-authorize-people-before-they-can-sign-up-but-it-looks-like-anyone-can-create-a-login-to-my-app/175966/5 "2025-02-13T00:25:26Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
