Before running the project, we need to run a npm task to bundle and minify the CSS and JavaScript files. In order to do that, we can open a command prompt, navigate to root directory of *.Web.Mvc project and run npm run create-bundles command. This command should be run when a new npm package is being added to the solution. Or you can just build your solution and all bundles will be updated automatically.
run npm run create-bundles
**command. **
Here are some introductions token-based-authentication
please refer: https://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=11483 https://github.com/angular/angular-cli/issues/5775
If I understand you correctly.
In fact, ANZ provides the http interface of the web api. It can be called by any client (such as the existing angular client)
Calling a webapi that requires permission only needs to pass the correct credential (token).
https://aspnetboilerplate.com/Pages/Documents/Multi-Tenancy#determining-current-tenant
DomainTenantResolveContributer: Tries to resolve tenancy name from an url, generally from a domain or subdomain. You can configure the domain format in the PreInitialize method of your module (like Configuration.Modules.AbpWebCommon().MultiTenancy.DomainFormat = "{0}.mydomain.com";). If the domain format is "{0}.mydomain.com" and the current host of the request is acme.mydomain.com, then the tenancy name is resolved as "acme". The next step is to query ITenantStore to find the TenantId by the given tenancy name. If a tenant is found, then it's resolved as the current TenantId.
There is no problem with your angular project. The Host project does not correctly determining the current tenant. If you want to test, you can request it.http://beverley.nuagecare.io/api/services/app/Session/GetCurrentLoginInformations
The tenant information will be returned normally. But your host project is not working correctly.
Configuration.Modules.AbpWebCommon().MultiTenancy.DomainFormat = _appConfiguration["App:ServerRootAddress"] ?? "http://localhost:22742/";
Has your App:ServerRootAddress
configured the DomainFormat
correctly?
Their order is also important
app.UseCors(//...)
app.UseDevExpressControls();
I am having some problems trying to building your project. What is your local sdk version?
or Would it help if I tested the sub-domain successfully using the ASPNET ZERO Demo Project?
You're welcome, my friend
Ok, I will check it out.
Can you use the Demo project to reproduce the problem you are experiencing? Demo project:https://aspnetzero.com/Download