Disable Sign Ups for a specific application

Ladies, Gentlemen and all in between! :grinning:
Is there a way to disable or enable sign ups for a specific application which is independent of the “Disable Sign Ups”-toggle in the dashboard for login with passwordless email (Authentication/Passwordless/Email)?
Best regards,
Mattias

Hi @mattiasinokuchi

Not really. I think there are some tricks you can do to disable the signup tab, but these are just tricks. A motivated user could still sign up.

Disabling signups for a particular app is an indication something isn’t right: if a connection is shared between apps, and only some apps can sign up, why can’t all?

What is the use case?

John

Hi @john.gateley :slightly_smiling_face:
I want to use a certain app for demo purposes (everyone can sign up and have a good time) and other apps for users added in the dashboard (sign up not allowed).
I probably make use of an environment variable (DEMO_MODE=true or something similar) instead.
Thanks anyway ad have a good day!
/Mattias

Hi @mattiasinokuchi

A demo mode sounds more secure to me.

Good luck!

John

Hi, how can I use a trick to disable the signup tab?
Thanks

Is this still not possible?

Hello and sorry for replying late to this topic.

Considering the “Disable Sign Ups” toggle is set to off this particular use case can be achieved using a Post Login Action. You can query by logins count and the client ID or connection.name as described below:


if( event.stats.logins_count === 1 && event.client.client_id === CLIENT_ID_TO_BLOCK_SIGNUPS)
{

  api.access.deny(`New user sign-ups are not allowed for this application.`);

}

Or instead of using api.access.deny, you can also redirect the user to the logout page directly using api.redirect.sendUserTo(). For more details on ways of how to achieve this you can check out our documentation on the Event or API object within the Login Trigger.

Hope this helps!
Thanks,
Remus

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