Hi @hugo.sjoberg,
Thanks for following up.
For Step 2. you will need to use the Auth0 Management API Create a Password Change Ticket endpoint, and then send the password change ticket URL in an email to the user. When the user clicks the link, they will be prompted to reset their password through the Universal Login flow.
Then to pass in additional query parameters, you can specify them after the #
symbol in the change password ticket URL.
For example, if the Change password URL looks something like the following:
"ticket": "https://{{YOUR_DOMAIN}}/u/reset-password?ticket=RqwHoceVYPZL69zWiOiheP508GkLGGxB#"
We can take this change password URL ticket, and add the extra query parameters after the hashtag (#
) symbol. Let’s say we wanted to add:
#app=AppName
Then the Change password URL would look like this:
"ticket": "https://{{YOUR_DOMAIN}}/u/reset-password?ticket=RqwHoceVYPZL69zWiOiheP508GkLGGxB#app=AppName"
(Reference: Add query parameters ticket URL)
Finally, let me add that calling https://{yourDomain}/dbconnections/change_password? does not allow you to include additional query parameters. Therefore, you will need to use the Management API to create a change password ticket to add the query parameters in the URL.
Does that help?
Thanks,
Rueben