abp icon indicating copy to clipboard operation
abp copied to clipboard

Add DomainTenantResolver and with angular.

Open maliming opened this issue 6 years ago • 3 comments

Hi Guys,

You all guys are doing wonderful job. Thank you so much for your efforts and wonderful thought.

I am trying to test multi tenant (subdomain) on localhost using angular platform with following the below steps: Step 1. Added "options.AddDomainTenantResolver("{0}.mydomain.com") and added corsorigin too. Step 2. Added test1.mydomain.com, test2.mydomain.com in hosts file (as I am using windows OS). Step 3. Run the asp.net project on localhost. Step 4: Build the angular project and then hosted on IIS with bindings *.mydomain.com and mydomain.com Step 5: Logged in as admin in host (angular) http://mydomain.com and added two test tenants (test1, test2). Step 6: Logged out and tried with subdomain http://test1.mydomain.com (angular), it does not auto bind tenant. -- ISSUE 1 Step 7: Even after set tenant from tenant switch box and logged in, it still logged into as host app with subdomain url. - ISSUE 2

What else should I need to do to consider subdomain from URL in angular project?

Originally posted by @brainedcode in https://github.com/abpframework/abp/issues/3304#issuecomment-661647820

maliming avatar Jul 21 '20 06:07 maliming

@maliming : Is it the know issue or have not implemented yet?

brainedcode avatar Jul 22 '20 03:07 brainedcode

hi @brainedcode This featue has not been implemented.

maliming avatar Jul 22 '20 08:07 maliming

This feature will be available after 4.3.

image

maliming avatar Mar 30 '21 12:03 maliming