Password Reset Redirect ( .Net management sdk )

So in our application we have some logic to invite a user. In order to accomplish this, we create a user via the Management API and then send the user a link to reset their password. Here is the code snippet:

public async Task<string> GetPasswordResetLinkAsync(string userId)
{
    var token = await _auth0ManagementAPITokenManager.GetAccessTokenAsync();
    var management = new ManagementApiClient(token, new Uri($"https://{_auth0managementAPIConfiguration.Domain}{UriConstants.ApiEndpoint}"));
    var passwordResetLink = await management.Tickets.CreatePasswordChangeTicketAsync(new PasswordChangeTicketRequest
    {
        UserId = userId,
        ResultUrl = "xxx"
    });
    return passwordResetLink.Value;
}

I am using our prod domain instead of “xxx”, however once I follow the link ( sent via email ), and reset my password it does not redirect to our prod domain. Any help would be greatly appreciated.

Have you resolved this? I have same issue.

Hi @cstam,

As mentioned in this post if you’re using the Classic Login Experience it should work fine, otherwise, if using the New Universal Login Experience, the redirect link will be ignored.

You can find more information about this here:

If you have any other questions feel free to ask.

Have a good one,
Vlad

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