Attività di "andmattia"

  • ABP Framework version: v7.1.1

I've a solution base on 7.X where I use DynamicProxy and Ocelot.

I see the video to move proxy from dynamic to static dynamic proxy

But my gatway not show my serivice. So I create a sample solution from scratch (via suite), I build all module and I try to check if productService work as expected but it doesn't work.

It's very simple to reproduce:

  • open abp suite
  • create empty solution (microservice template)
  • run gateway
  • run admin service
  • run product service
  • get API definition

My expected is to see productService as well

  • ABP Framework version: v7.1.0

I've a case where I have api the host need to access to orders (all tenant) and tenat user only own data.

I know that is possible to do that in appliaction/domain but I need to add logic to all calls. My idea is create a second HttpApi and disable datafilter but it doesn't work.

I create a using with UnitOfOwrk and inside of this using a second using disable a data fitler for multitenant but on application service I see tha same GIUD fot unit off work but IMultitenat filtert have filter with IsEnable set to true.

Is it possibile disable filter on HttpApi and propagate to Application/Domain/EF?

  • ABP Framework version: v7.1.0
  • UI type: Angular
  • DB provider: EF Core / MongoDB

I've a method POST to send file that work on own microservice but when call came from OCELOT all data send it is blank/null.

If I expose directly the microservice it works.

My call come from HttpClient

  • ABP Framework version: v7.1.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

I've move my solution to LeptonX.

So I've created a second microservice and my angular UI has a new menu but the root name still visible to all user "autenticated" and "not autehnticated".

How can set my second menu visibile only for auth user?

I try to change my routing.module.ts inside a microservice folder off angular app but base menu name still visible

{
    path: '',
    pathMatch: 'full',
    component: DynamicLayoutComponent,
    children: [],
    canActivate: [
      AuthGuard,
      PermissionGuard
    ],
  },
  • ABP Framework version: v7.1.0
  • UI type: Angular
  • DB provider: EF Core
    • Tiered (MVC) or Identity Server Separated (Angular): yes

I use a microservice solution and it work fine but still have issue related to API Gateway published on IIS.

app.UseAbpSwaggerUI(options =>
        {
            var configuration = context.ServiceProvider.GetRequiredService<IConfiguration>();
            var routes = configuration.GetSection("Routes").Get<List<OcelotConfiguration>>();
            var routedServices = routes
                .GroupBy(t => t.ServiceKey)
                .Select(r => r.First())
                .Distinct();

            foreach (var config in routedServices.OrderBy(q => q.ServiceKey))
            {
                var url = $"{config.DownstreamScheme}://{config.DownstreamHostAndPorts.FirstOrDefault()?.Host}:{config.DownstreamHostAndPorts.FirstOrDefault()?.Port}";
                // if (!env.IsDevelopment())
                // {
                //     url = $"https://{config.DownstreamHostAndPorts.FirstOrDefault()?.Host}";
                // }

                options.SwaggerEndpoint($"{url}/swagger/v1/swagger.json", $"{config.ServiceKey} API");
                options.OAuthClientId(configuration["AuthServer:SwaggerClientId"]);
            }
        });

I need to change the not development because my IIS has non different name for single service... or all my service need to be available one by one? (ES. auth.mydomain.com, saas.api.mydomain.com,identity.api.mydomain.com, product.api.mydomain.com, ect)?

My api gateway is publish to FQDN to port 443 but all other service is in "localhost" or "machinename" in other port, so when I open the API gateway swagger the Account service works fine

If I use any other service

  • ABP Framework version: v5.3.1
  • UI type: Angular

Hi

we have create a solution based on microservice template, we follow the guide to create a new microservice and add it to the solution.

Which is the best way to add a new gateway and new UI app (angular)?

We copy and paste the folders but need a lot of reworks

  • ABP Framework version: v5.3.1

We have some issue on a multitenant app for user admin that change user name.

We user register a new tenant an admin will be create by the backend but user can change admin user name.

I think it's not a good option because in that way for admin is not static and we can't access with impersonation.

Is it possibile to lock admin user name? Or other work around?

  • ABP Framework version: v5.3.1

Hi

we have an app with single auth server from a second app we see all log host and tenant

UPDATE

we still have an issue releted to this ticket https://support.abp.io/QA/Questions/3924/Multitenant-on-separated-IDS.

If we try to login from API on swagger is impossibile to do login because the Auth is set to base and not to tenant Auth

Hi

In my module I've a distributed event (es. new order created) so my handler catch it and write on Db the new data. Now I use my module in 2 application connected to my Bus. In this scenario I've more then 1 write process

  • one on my 1st appe
  • one on my second app

My goal is find a way to create handler for the event but enable / disable it to prevent multiple write data, which is the best way to do that?

  • ABP Framework version: v5.3.1

Hi

we have created 2 app (angular apps) and we use a single Auth server.

Our goal is from app1 move to app2 without reinsert credentials.

Our landscape is confgured in multitenant enviroment with tenant resolver, so we have

  • customer1.myapp.com -> customer1.api.myapp.com -> customer1.auth.myapp.com
  • customer1.myapp2.com -> customer1.api.myapp2.com -> customer1.auth.myapp.com
  • customer2.myapp.com -> customer2.api.myapp.com -> customer2.auth.myapp.com
  • customer2.myapp2.com -> customer2.api.myapp2.com -> customer2.auth.myapp.com

The first App use a login embedded on Angular when I click in a link that redirect to App2 I land on home but I'm not already logged in. I click the login button but I need to re enter my credentials.

Is it possibile to login directly?

UPDATE

If I go on Auth server page after login I can see all my apps but only one (the first) if I click I can go inside already loggedin the second no

UDPATE 2

I see that if I configure auth server with this options and try to login from api (https://customer1.api.myapp.com) I can't login

"SelfUrl": "https://auth.myapp.com",
...
"TenantResolver": "https://{0}.auth.myapp.com"

If I remove the tenant resolver I see the login page from auth server I need to inser manually the tenant but it works

11 - 20 di 35
Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11