Activities of "andmattia"

How can I add a HangFire Dashboar to my console APP/winService?

  • ABP Framework version: v5.3.1
  • UI type: Angular
  • DB provider: EF Core

HI how can I add a recurring job at run time? and how can I remove it?

so I try to add via startup but I try to read polling intervall via appsettings.json but I can't do it

 public PollingWorker()
    {
        //_options = ServiceProvider.GetService<IOptions<Dataptions>>().Value; --> Null exception
        RecurringJobId = nameof(PollingWorker);
        CronExpression = Cron.MinuteInterval(2);
    }

  • ABP Framework version: v5.3.1
  • UI type: Angular / WinFomr
  • DB provider: EF Core * Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I try to login from winfrom using IIdentityModelAuthenticationService it works fine on host but how can I set the tenant? How can get tenat Id from name?

using (var cs = _provider.CreateScope())
                {
                    _tenant.Change(myTenantGuid, txtTenant.Text);


                    AsyncHelper.RunSync(() =>
                        _tokenManager.ObtainAccessToken(txtUser.Text, txtPassword.Text, txtUrl.Text));
                    var q = AsyncHelper.RunSync(() => _appService.GetAsync());
                   
                }
  • ABP Framework version: v5.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

I've configure my app in multi tenant (with tenant resolver) and replace login component with local Angular UI the problem is that when I click login I'll be redirect to IDS (mvc page in place to my local Angular UI).

My App.Component.Ts is set to:

ngOnInit() {
    this.replaceableComponentsService.add({
      key: eAccountComponents.Login,
      component: LoginComponent,
    });
    this.replaceableComponentsService.add({
      key: eAccountComponents.Register,
      component: RegisterComponent,
    });
    this.replaceableComponentsService.add({
      key: eThemeLeptonComponents.AccountLayout,
      component: AccountLayoutComponent,
    });
  }

It works fine if I don't use tenantResolver but when I switch to tenant roselver (using {0} for placeholder) local login not work

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

I try to use this scenario in multi tenant env: Angular IDS API

We follow the guide https://support.abp.io/QA/Questions/1552/Better-Documentation-for-Multi-Tenant-Subdomain-Resolver but not work.

We are able to login in IDS tenant (es t1.auth.mydomain.com) and open Api in tenant (t1.api.mydomain.com) but when I try to authorize my api client the auth login url is auth.mydomain.com and not t1.auth.mydomain.com so the authentication move to host and not to correct tenant.

on appsettings.json

 For IDS
 "SelfUrl": "https://{0}.auth.mydomain.com",
 "TenantResolver": "https://{0}.auth.maydomain.com"
 


For API
 "SelfUrl": "https://api.mydomain.com",
 "TenantResolver": "https://{0}.api.maydomain.com"
 
    "AuthServer": {
        "Authority": "https://auth.maydomain.com",
        "RequireHttpsMetadata": "true",
        "SwaggerClientId": "client_Swagger",
        "SwaggerClientSecret": "1234567"
    },

on IDS ConfigService we put on top of module

       .....
        context.Services.AddAbpStrictRedirectUriValidator();
        context.Services.AddAbpClientConfigurationValidator();
        context.Services.AddAbpWildcardSubdomainCorsPolicyService();
        Configure<AbpTenantResolveOptions>(options =>
        {
            options.AddDomainTenantResolver(configuration["App:TenantResolver"]);
        });

        Configure<IdentityServerOptions>(options =>
        {
            options.IssuerUri = configuration["App:SelfUrl"];
        });
        
       ....

and on HttpApiHost

        ....
        Configure<AbpTenantResolveOptions>(options =>
        {
            options.AddDomainTenantResolver(configuration["App:TenantResolver"]);
        });
        .....

ABP 5.3.1 Anuglar

I've create a new module now I need to test in multitenant.

I switch the tenant switch on API side but when I try to create a new tenant doesn't create the admin user

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

We have a module created via suite and now we have crate our nuget pack and NPM to reuse it in another module.

I try to find a way to solve a nightmare related to export module/proxy. All works fine until I need to call a proxy from module B that it came from module A.

I look into a SAAS module and I see that proxy folder is not inside SRC for angular but it was at root level

saas |--proxy |--src

I try to reproduce the same structure but via abp generate-proxy is not possibile... or don't find a way to do that. Looking inside the source I see that ad a ng-package.json to export proxy from module. I do the same but I still get the error module not exported.

My folder structure is ModuleA |--src |-----lib |--------proxy -> In this folder I put ng-package.json

So now I have my build module with proxy epoxrted... but it still no working.

Looking into the generated code I see that SAAS has @volo/abp.ng.saas/proxy into proxy folder but in my module I have @moduleA/src/lib/proxy. I search the documentation where find a way to create a module and NPM package but I don't find anything.

In all module angualr exists only the project foleder and not the entire project (I see that it is refere to a file tsconfig.base.json but where is this file?)

I've

follow the guide suggested on my prev ticket How-to-customize-IdentityServer-login-page and it'works fine on debug but when I move to production env the lepton theme ignore my csutom folder during buduling use only global.css

Is it normal?

2022-04-28 12:27:33.346 +02:00 [INF] Bundling __bundles/Lepton.Global.EBEE615D31F6CB72FC61AE315D1127D4.css (13 files)
2022-04-28 12:27:33.421 +02:00 [INF]   > Minified /libs/abp/core/abp.css (1331 bytes -> 868 bytes)
2022-04-28 12:27:33.464 +02:00 [INF]   > Minified /libs/@fortawesome/fontawesome-free/css/all.css (73577 bytes -> 53572 bytes)
2022-04-28 12:27:33.475 +02:00 [INF]   > Minified /libs/@fortawesome/fontawesome-free/css/v4-shims.css (41312 bytes -> 33344 bytes)
2022-04-28 12:27:33.566 +02:00 [INF]   > Minified /libs/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css (54850 bytes -> 43189 bytes)
2022-04-28 12:27:33.573 +02:00 [INF]   > Minified /libs/datatables.net-bs5/css/dataTables.bootstrap5.css (9115 bytes -> 8152 bytes)
2022-04-28 12:27:33.574 +02:00 [INF]   > Minified /libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-styles.css (464 bytes -> 379 bytes)
2022-04-28 12:27:33.658 +02:00 [INF]   > Minified /global-styles.css (26 bytes -> 0 bytes)
2022-04-28 12:27:33.669 +02:00 [INF] Bundled __bundles/Lepton.Global.EBEE615D31F6CB72FC61AE315D1127D4.css (664474 bytes)

After login I still see the them6 (because is purple on left)

  • ABP Framework version: v5.2.0
  • UI type: Angular
  • DB provider: MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): no Tired / IS separeted
  • Exception message and stack trace:
[Area(DynamicTemplateRemoteServiceConsts.ModuleName)]
[RemoteService(Name = DynamicTemplateRemoteServiceConsts.RemoteServiceName)]
[Route("api/custom/layout-template")]
public class LayoutTemplateController : DynamicTemplateController, ILayoutTemplateAppService
{
    protected ILayoutTemplateAppService LayoutTemplateAppService { get; }

    public LayoutTemplateController(ILayoutTemplateAppService layoutTemplateAppService)
    {
        LayoutTemplateAppService = layoutTemplateAppService;
    }

    [HttpPost]
    [Route("give-layout-templates")]
    public Task<PagedResultDto<LayoutTemplateDto>> GiveLayoutTemplates(GetLayoutTemplateInput input)
    {
        return LayoutTemplateAppService.GiveLayoutTemplates(input);
    }

This generate an error

2022-04-13 12:21:09.582 +02:00 [INF] Executing action method Dm.DynamicTemplate.LayoutTemplateController.ProvaInput (Dm.DynamicTemplate.HttpApi) - Validation state: "Valid"
2022-04-13 12:21:11.093 +02:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "An internal error occurred during your request!",
  "details": null,
  "data": {},
  "validationErrors": null
}

2022-04-13 12:21:11.093 +02:00 [ERR] Property accessor 'DeclaringMethod' on object 'System.RuntimeType' threw the following exception:'Method may only be called on a Type for which Type.IsGenericParameter is true.'
System.Reflection.TargetInvocationException: Property accessor 'DeclaringMethod' on object 'System.RuntimeType' threw the following exception:'Method may only be called on a Type for which Type.IsGenericParameter is true.'
 ---> System.InvalidOperationException: Method may only be called on a Type for which Type.IsGenericParameter is true.
   at System.RuntimeType.get_DeclaringMethod()
   --- End of inner exception stack trace ---

if I use the code below in Http APi (importing Application Module or in Host Module) the API works fine (I try in 5.1.4 and 5.2.0) this happen only with this input object. The inpunt object exted a class that extend PagedAndSortedResultRequestDto. Internally I have an array object the same type.

public class Filter {
    public string Name {get;set;}
    public Filter[] Filters {get;set;}
    }

        Configure<AbpAspNetCoreMvcOptions>(options =>
        {
            options.ConventionalControllers.Create(typeof(DynamicTemplateApplicationModule).Assembly, opts =>
            {
                opts.RootPath = "custom/";
            });
        });```

Hi

we need to change the schema color and other staff on Login Page provided from Identity Server.

How can do that?

顯示 35 個紀錄的 21 到 30 個.
Made with ❤️ on ABP v8.2.0-preview Updated on 3月 25, 2024, 15:11