Open Closed

Background Worker needs the authorization #485


User avatar
0
murat.in created

Hi support, I am developing an application using abp framework, ABP Commercial(3.2.1) framework and commercial angular client. I have ABP Background Worker running every night. This is integration worker and imported some data from another system to my applications with using my appservices.

I'm having a problem with authorization in this scenario. My worker runs without any user logins. Therefore, authorization codes on the services not allowed the worker. I think, [Authorize] tags not found any user and tenant information.

My second and related problem is about tenant field. My workers code access and write multi-tenant files but in my code tenant field has null value and i am not using tenant.

Is it possible to service level user login operations? If i successfully logged in my worker code, my two prolems will be solved but Our subscription package not include commercial module codes and i can't see the "/api/account/login" api service level identity server and account functions.

If you suggest another way to solve this problem, I'll be happy to hear that too.

Best regards,

Frameworks: Abp Framework 3.2.1. Commercial 3.2.1. UI Type:Angular Identity Server Seperated (Angular): No


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    See https://github.com/abpframework/abp/issues/3743

  • User Avatar
    0
    murat.in created

    Thanks your answer. I solved problem using Hangfire+ Domain level coding.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38