Conditional Login, gather extra user data

Problem

  • Due to business requirements, we would need to be able to conditionally gather additional information from a user depending on which account logs in.

  • Allow some users to login using username/password (Example: user logs in successfully and enters application).

  • Require some users to login using username/password and then conditionally gather additional pieces of data, based on what group they are a part of. (Example: users successfully logged in, now require then to enter their favorite number to complete a valid login action).

  • Is this possible with Auth0? If so, how to implement, could I please get some guides/tutorials on this information? I have been unable to come across a customized conditional login experience such as this thus far in my searches across Auth0 forums.

Hi @ThomasAdams,

Welcome to the Auth0 Community!

You should be able to achieve this flow with Actions. Actions allow you to tap in to the login flow and run custom code for each transaction.

Specifically, a Redirect Action would allow you to send the user to an external site to collect information, then send them back to finish the login. This sounds similar to Understand How Progressive Profiling Works.

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