Open Closed

Password Reset issue when using domain tenant resolver #6150


User avatar
0
russell.thompson created
  • ABP Framework version: v7.2.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

We are using AddDomainTenantResolver to use a wildcard subdomain to identify our tenants. This is configured in the manner of the following example:

Configure<AbpTenantResolveOptions>(options =>
{
    options.AddDomainTenantResolver("{0}.app.mydomainhere.com"); 
});

When our users request a password reset, the link is on the base domain and the __tenant in the query string is ignored, so they get a 404 User Id not found message. Is the recommended way to deal with this to set the App SelfUrl to https://{{tenantName}}.app.mydomainhere.com or is there some other way for this to be handled? I could not find any documentation on the recommended setting for SelfUrl so currently it is set to the base domain https://app.mydomainhere.com.


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Is the recommended way to deal with this to set the App SelfUrl to https://{{tenantName}}.app.mydomainhere.com

    Yes, this is the recommended way.

  • User Avatar
    0
    russell.thompson created

    Thank you for the confirmation. I made this change and it is working as expected now.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 25, 2025, 11:10