after
Ok thank you. For the quick response ,
We will work on it.
Hello Maliming
We are waiting for demo ,We are using separate identity server with angular as a front end. Do we have demo for that?
I will create demos that use domain names to resolve tenants. MVC and ANGULAR.
Ok Thank you.
hi @MarekH
I am going to check your application remotely. Please tell me your available time. liming.ma@volosoft.com
Hi @Maliming
We will available after an hour (02:00 PM IST) is this fine for you ?
hi @MarekH
Deos
tenant1.mydomain.com
andauthserver.mydomain.com
both usemydomain.com
as domain?
Yes both are in same domain
Configure<AbpTenantResolveOptions>(options => { options.AddDomainTenantResolver("{0}.mydomain.com"); });
We have added above method , to switch tenant autometically on the basis of URL change
To clarify:
- In tenant1.mydomain.com hit login
- Redirected to authserver.mydomain.com (identityserver), enter credentials for admin user and hit login
- Successfuly signed in and I am now redirected back to tenant1.mydomain.com.
- But logged in user is not tenant admin but the host admin?
But tenant is not getting changed , We are still logged in as admin.
I assume Host admin, not tenant admin.
It might be related with cookies and application cache. Does it the same behaviour when you cleared the cookies and browser cache or in incognito mode?
Yes , It is same behaviour when we clear cookie.
We are getting logged in as HostAdmin instead of tenant Admin
We have used below method to enable tenant switching on the basis of URL:-
Configure<AbpTenantResolveOptions>(options => { options.AddDomainTenantResolver("{0}.mydomain.com"); });
Do we need anything else for switching tenant on the basis of URL?
Actually we are trying to switch tenant on the basis of change in the URL , Instead of switching it from the popup modal which we have in the login. We have tried below things :-
- Created Custom tenant Resolver class also added {0}.maindomain.com specified this URL. As we found this solution to switch tenant autometically on the basis of URL.
In current scenario we are getting that URL after login for example if we use
tenant1.mydomain.com then after login we are redirecting to same tenant1.mydomain.com But tenant is not getting changed , We are still logged in as admin.
Can you please help us.
We are facing this issue while we are trying to login using url.
Actually we are trying to switch tenant on the basis of change in the URL , Instead of switching it from the popup modal which we have in the login. We have tried below things :-
In current scenario we are getting that URL after login for example if we use
tenant1.mydomain.com then after login we are redirecting to same tenant1.mydomain.com But tenant is not getting changed , We are still logged in as admin.
Can you please help us.
We are removed the switch tenant from UI ,we are use subdomains in comaracial code