Starts in:
1 DAY
13 HRS
6 MIN
40 SEC
Starts in:
1 D
13 H
6 M
40 S

Activities of "andmattia"

Hi

I don't have an error on log side but in cosole

If I try to call via postman the API it works fine

Can you confirm that the microservice not to be exposed on web but only api gateway?

So if you look below the name you see the URL and it is the internal URL (es. localhost:45566 or MY-MACHINE-NAME:45566) and of course it doesn't work

  • 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

Hi @gterdem

Thanks for the clarification about gateway I made an error reading ports (gateway & productServices), so related to this why you specify prodcut service if it's still on the same address?

In this case I can remove it or is it better to specify?

export const environment = {
  production: false,
  application: {
    baseUrl,
    name: 'prj',
  },
  oAuthConfig,
  apis: {
    default: {
      url: 'https://localhost:44325',
      rootNamespace: 'prj',
    },
    AbpAccountPublic: {
      url: oAuthConfig.issuer,
      rootNamespace: 'AbpAccountPublic',
    },
    ProductService: {
      url: 'https://localhost:44325',
      rootNamespace: 'prj.ProductService',
    },

Hi

I've create a new app via suite and use only the angular folder with my microservice solution. So now I'm a little confuse how can I change my tenant.

I try to explain the scenario:

  1. App create via suite (no microservice)
    1. Create 2 tenant
    2. Open the UI
    3. go to Saas anche switch to tenant
  2. App with microservice
    1. Admin app has tenant adminstration
    2. Second app (create via suite) use microservice and gateway. All function it works fine.
    3. Need to change tenant.
      1. If I add sass UI angular module to this app, configure the route to access to SaasMicroservice
      2. I don't add SAAS module to change tenant (concretly I remove SAAS angular UI module from second app). I can I change tenant? Only via admin app and open the Url of second app. The tenant propagation work via cookies?

Another confusion is releted to default product Microservice that are autogenerated on solution. Why, in angular app, the microservice is "connected" directly to productMicroservice and not to the gateway?

,
    ProductService: {
      url: 'https://localhost:44325',
      rootNamespace: 'MyMicroMicroservice',
    },

Hi @gterdem my goal is add a new app (es. a PWA to B2B on eshop example). This new app ass 2 microservice

  • Delivery service
  • Logistic service

We need to create a new dedicated gateway with Catalog, Ordering, Logistics and Delivery Service an a dadicated app. So my approch is duplicate the gateway project and adjust Seed/CORS/config to allow conncetion but for a quick start to web pwa app I create a normal APP with cli command line and copy&paste angular folder.

The question is it's the best/only path that I've to do that?

Hi

I follow the document and I've create a new solution based on microservice.

I add a new service to my new microservice solution and it works fine, so now I want to add a new application so to do that I think:

  1. add new service (ok)
  2. add new gateway, I copy the web gateway in the solution and adjust octleton.json
  3. add new UI app, a new Angular app. I copy a angular app came from new app template

Point 2 and 3 I'm not sure if it's the best way to do.

  • 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

I've the same problem and I read this thread to find the solution. In my case I've change my EF repository to use IDbContext instead DbContext.

I think the misconfiguration came from AbpSuite, so when you create a new entity you get custom repo based on concrete DbContext. It works fine if you don't need to move into a microservice but if you move later to microservice you need to change this.

For example the CmsKit has this issue in BlogFeature you get and in Blog you have

With this configuration it's impossible to Replace the DbContext.

I hope this example can be usefull.

  • 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?

Any update?

Showing 61 to 70 of 142 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06