I cant impersonate my tenant with my host admin in my production site. however, the impersonate in localhost is works fine. the error on the logs.txt is
System.ApplicationException: Current tenant is different than given tenant. AbpSession.TenantId: , given tenantId: 3
WebsiteRootAddress on appsettings.json:
"App": {
"WebSiteRootAddress": "http://{TENANCY_NAME}.mylivesite.com/"
},
6 Answer(s)
-
0
Hi,
Can you try to change
http://{TENANCY_NAME}.mylivesite.com/
to
http://{TENANCY_NAME}.mylivesite.com
By the way, I think you are using ASP.NET Core with Jquery, right ?
Thanks.
-
0
if I remove the slash on the end of URL, the Impersonate's link would be broken. it's would be something like this:
mytenant.mylivesite.comaccount/ImpersonateSignIn?tokenId=17405275-51ff-4151-99b3-87146e613ce2
notice the account link is merged with com.
also, the login doesnt work either if I went to mytenant.mylivesite.com/Account/Login and try to login with my tenant's user.
Yes, I'm using .net Core with Jquery
-
0
However,it's work if I remove the {TENANCY_NAME} in WebSiteRootAddress
"App": { "WebSiteRootAddress": "http://admin.mylivesite.com/" },
anyway, I'm using a wildcard in my live site.
http://*.mylivesite.com
-
0
Hi,
Which version of ABP do you use ?
-
0
I'm using ABP 1.5.1 the Impersonate works for previous version.
-
0
Hi,
We can arrange a online help meeting for monday if you are ok with it. We are available between 08:00 to 17:00 UTC+3. Please share your availability to <a href="mailto:[email protected]">[email protected]</a>.
Thanks.