/password-change
Management API endpoint. You will need to:
user.email_verified
parameter set to false
. You can use the Create a User endpoint.user_id
or email and connection_id
to the Management API endpoint.result_url
parameter is the redirect location your application sends the user after they set their password. In this case, the result_url
should be your app login page. To learn more, read Redirect Users After Login. You may also use the client_id
parameter shown below; after the customer verifies their email, they are redirected to your client’s Default Login URI.ttl_sec
parameter to set how long the invitation link will remain active. The ttl_sec
parameter should align with your relevant security concerns. The link is a one-time use, so once the user has set their password, it is not vulnerable to reuse.mark_email_as_verified
parameter as true
. You should not set the email verification to true
if the email account is not registered. A successful request to this endpoint will return a ticket URL. You will use that URL to create the user invitation.#
. Do not edit anything before the #
.
Add a parameter to specify a set password workflow UI. Example:
user.app_metadata
that shows this user account was invited. Then in your email template you could check for this property:
/authorize
.result_url
you set when you created the password change ticket is where the user will be redirected after creating their password. In this case, you want the URL to be on the site the user has been invited to so that it can initiate the login workflow. Your target app will need to parse the success
parameter to confirm no errors occurred then immediately initiate the redirect back to Auth0 to log the user in.
To optimize the user experience, you can have the target app parse the email
parameter and include it with the authentication request as the login_hint
parameter. This will pre-fill the user’s email address in the login form.