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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Hi,

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    murat.in created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.