I am currently on the startup/free plan of Auth0 and need to create the flow for users first log in on my app.
The desired flow i wnat is
I create the user in the auth0 dashboard
the users receives an email asking to set his password
when user sets its password received an welcome email with the link to my app where he can log in for first time
I tried several different thingss with actions/flows but it always fails or gets blcoked. Is there anyway to create this type of flow on the startup plan?
Regarding the desired implementation for your application, you would need to have the following flow:
Create the user via the Management API using your application
Send a password change email to the user. A good example is visible here. Make sure to not include an Application Login URI or Tenant Login URI since they will provide a button for the user to go to the login screen directly from there. If it simplifies your flow, then you can include the login URIs and skip the welcome email
Using a Post Change Password Trigger and a 3rd Party Email Provider, send an Welcome Email redirecting back to your application’s login flow.
Why you will need to use a 3rd party email provider for the last step is because the Welcome Email template cannot be triggered manually and can only be sent after the registration flow has been completed.
Thanks a lot Nik.
However in my case the suer doesnt sign un. I create them directly on the auth0 dashboard. I tried the port user registration flow and didnt work unfortunately
There is no need to use a Post User Registration Action since you are creating them with the management API/from the Dashboard. You will need to use a Post Change Password Trigger to send the welcome email using a 3rd party email provider if you do not wish the user to be redirected to the application from the Successful Password Change screen.
The example I provided above was to see how to make an HTTP request using the Management API endpoint, you can use that inside your code once the user is being created.