Version 13.0.0, Angular 17, .NET 8
Hi Support,
Please advise on how to approach below case.
We have some third party APIs we have to call throughout our main ASP.NET zero application, however requires addition of NuGet packages, authentication keys, client certificates, etc.. so I wouldn't like to tight ASP.NET zero by just creating a domain service under .Core project and add all these extra requirements...
What is the best approach to handle this?
Do I have to create separate project (logical separation) inside the same solution to handle all this new functionality? If yes what would be the connection/references with the other projects?
Do I have to create a standalone API (physical separation) that will handle this functionality? In that case how do I consume it through my ASP.NET zero application so that to use same authentication/authorization?
Thank you in advance!
Loizos
What is your product version? 12.1.0 What is your product type (Angular or MVC)? Angular 15 What is product framework type (.net framework or .net core)? .NET7
Hi support,
We are deploying our Application to Azure. We have a WAF protecting both the Application and the API service. These services are hosted on separate machines with a shared database. The WAF will do TLS termination.
We understand that JWT tokens is used as the authentication mechanism. However, we’re a little unclear on how the JWT token is used when accessing the API service. We are assuming the following scenario – are we correct please?
User accesses web application a. one-way TLS between the application and the WAF gives us an encrypted connection – i.e. the user is not authenticated to the WAF. b. user authenticates to the web application (username/password) and the web app returns JWT token.
User then calls the API service (which is on another machine) a. We assume that the JWT token has to be sent with the request to the API service? b. JWT authentication is then done at the API service i.e. authentication is done by the back-end machine?
Questions:
Do you have a basic design diagram showing the above interactions?
Can we configure the JWT service ?
Where is the JWT token stored? (we assume the shared DB?)
We would prefer it if the authentication was done nearer to the WAF and taken off the back-end service. We are considering an API-Manager between the WAF and the API service. a. Is it possible to configure our solution so that the JWT is handled by the API-Manager and not ASPNetZero? b. Do you have any examples of this architecture or do you think that this is not a good idea?
Thanks! Loizos
What is your product version? 12.1.0 What is your product type (Angular or MVC)? Angular 15 What is product framework type (.net framework or .net core)? .NET7
Hi support,
We are experiencing problems with login in (invalid user name or password) with host admin & default tenant admin users. Basically after upgrade to 12.1 we couldn't login to default tenant, we tried to impersonate host admin for this, it worked ok but then we realized that we cannot login to host admin. Something is completely messed up. Please advise!
Regards, Loizos
What is your product version? 11.4.0 What is your product type (Angular or MVC)? Angular 14 What is product framework type (.net framework or .net core)? .NET6
Hi support,
I would like to ask for some security recommendations on how to best expose front-end (Angular) and back-end web API on production environment. We know that due to it's an SPA application, both the front-end and back-end need to be accessible from the client side, but is it a good practice to deploy both in a DMZ zone? Is it secure? Please advise.
Thank you in advance!
Loizos
What is your product version? 11.4.0 What is your product type (Angular or MVC)? Angular 14 What is product framework type (.net framework or .net core)? .NET6
Hi support,
I would like to ask how to approach a use case that each tenant wants to have different set of data/fields for the same functionality i.e. store customer personal info, one tenant might want to start by storing 5 fields for their customers and other tenant 10 fields; I am talking about mandatory fields. How to approach this on back-end data model including SQL database. The same question for the front-end.
Also could the tenant later on modify this by adding/removing fields dynamically? Is there any build-in functionality that can handle such a case or do we have to develop a custom mechanism?
Thanks, Loizos
What is your product version? 11.1.0 What is your product type (Angular or MVC)? Angular 13 What is product framework type (.net framework or .net core)? .NET6
Hi support,
I am struggling with select2 component can you please help on this? But I thought that most of the Metronic controls or at least the most common one - were included in asp.net zero, but it's not the case right? Do you have plans to add more?
Anyway, I followed instructions I found in several posts on how to install and use it in Angular but either npm commands not working so I had to use yarn, or module couldn't be found after I added it in app.module.ts, or my entire application was full with compilation errors after jquery and bootstrap installations... so I revert back all changes
Can you please advise on how to install and use it? Is there any other similar control that comes out of the box and I didn't realize/discover it?
Thanks, Loizos
Hi support,
We would like to use the default theme as our base theme but with three main changes: 1. to enable the menu on the header panel (it's enabled by default in metronic), 2. to disable the aside (left) menu, and 3. to have the main content fluid width - not fixed. The result of this when you use the Layout builder in Metronic site is:
[https://prnt.sc/1_faAoxg_iWW]
Please advise on how to apply the same configuration in our asp.net zero angular solution. I know that you support "Adding New Metronic Theme", but still if I add a new theme based on the default one, what are the changes we need to perform in order to make it feel like the one above?
Thank you in advance!
Loizos
I have the following case and I would like your advises on how to proceed.
I would like to deploy a new small web application (client portal) in order to access specific part/services of the main application, but with limited permissions and functionality of course. The main application (angular + asp.net core) is a multitenant application and each tenant/customer have it's own clients, hence the need of the client portal. To do so I am planning to create a new web application/front-end but I would like to benefit and use the existing asp.net zero functionality as my base/core back-end.
Can I create a new class project inside existing core solution as a new module in order to implement all portal related application services? i.e mycompany.myapplication.application.portal Do I need to create a new module in all layers or a new module in application layer only?
How can I expose these services separated and isolated and not mixing them with the application (full) services and functionality? If I just add the depentency in webcoremodule it's going to add/expose the new services along with the application services right? Do I have to create a new web host project instead? Please advise.
Also how can I isolate database related functionality on EF/migration layer as well as on DB layer? For the DB layer can I implement a new repository that will point to a new connection string? This way I am thinking to have a second schema on the database (SQL) with limited permissions. Please advise your recommendation on this.
Thank you.
What is your product version: 11.0.0 What is your product type (Angular or MVC): Angular What is product framework type (.net framework or .net core) .NET 6.0
Hi,
I would like to ask if I will be facing any kind of issues in future (..during updates/upgrates of ASP.NET Zero ?) if I change the structure of the root folders. For example I would like to have the angular folder in a different github repository (e.g. myapplication-angular/angular) while the aspnet-core folder in another respository (e.g. myapplication-core/aspnet-core).
Also, the same question goes for the mobile app source code, is it possible to take it out in its own root folder without having any troubles in future updates?
Thank you in advance,
Loizos
I've fixed Power tools based on previous post I've seen, so I installed "dotnet-runtime-2.2.0-win-x64", hence after clicking on Generate button, the commant prompt now opens eventually and starts generating the necessary source code. However, I am still getting below error when it comes to EF migration. Please advise.
Running add-migration... Could not execute because the specified command or file was not found. Possible reasons for this include: