FIX:
in angular/src/assets/abp-web-resources/abp.js
abp.multiTenancy.tenantIdCookieName = 'Abp-TenantId';
in aspnet-core/src/Blah.Core/AccountCoreModule.cs
Configuration.MultiTenancy.TenantIdResolveKey = "Abp-TenantId";
Hello - we're having the same problem, what was the fix? thanks!
Hi @ismcagdas 👋 - well that's timely!
Reviewing that PR, I headed down the same path in my research 😊! But, it didn't work for me as the AJAX request is returning a 302 which redirects the browser.
Also, I don't see same Startup.cs
file; I don't have anything about CookieAuthenticationOptions
. Is that server side change applicable for the Angular project template? 🤔
Maybe yours work b/c of the change from [AbpMvcAuthorize]
to [AbpAuthorize]
? (I gotta look up the difference between those two)
Articles Tutorials | AspNet Boilerplate: configure debugging in Visual Studio
Articles Tutorials | AspNet Boilerplate: configuring debugging in Visual Studio
version: Angular version of Zero using QueryStringTenantResolver
Is there a set of API(s) I can call to switch a user from one tenant to another? I reviewed the behavior of linked accounts and tried doing something similar by calling Logout()
but I'm having trouble if I call Logout()
on a user that is not logged in as that issues a 302 (on a ajax call). I also have trouble calling Logout()
if the user's token has expired.
Use case:
Current working solution
In AppPreBootstrap.ts
I'm checking for a specific query parameter to trigger:
abp.auth.clearRefreshToken();
abp.auth.clearToken();
AppPreBootstrap.resolveTenancyName(AppConsts.appBaseUrlFormat);
location.href = AppConsts.appBaseUrlFormat;
In the login page, I'm automatically redirecting to the IDP which recognizes the user is already signed in & returns back to our app
In this solution, I'm not calling Logout()
on the server. Are there any potential problems you see by not calling it?
Alternative solution: call Logout()
in AppPreBootstrap.ts
Logout()
when they areI assume both of those would involve reading some values from session storage?
Thanks!
Thanks for the link but I wanted to raise a global issue. I've seen broken links like this numerous times on the support site.
I stumbled upon another today:
I've seen a few links like this now:
bad link: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1858%22%3Ehttps://github.com/aspnetboilerplate/as