Conflict Integrating Elsa 3.5 with ABP (OpenIddict) Authentication #6773
Replies: 2 comments 1 reply
-
|
I'm stuck with the same problem and my workaround is a bit different - apparently, FastEndpoints won't automatically create the policies defined in the So this is what I did: |
Beta Was this translation helpful? Give feedback.
-
|
@IslamAlkhateeb can we get your email address to discuss or discord |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
.AddElsa()in a layered module (Workflows.HttpApi)🧩 Problem Summary
I’m integrating Elsa 3.5 into an ABP.IO-based system. My goal is to expose the Elsa Studio APIs and allow users to authenticate using ABP’s Identity (based on OpenIddict). However, I faced these issues:
When I enable
.UseIdentity()withTokenOptions.SigningKey, the Elsa APIs require their own bearer token signature, which collides with ABP’sAddAbpJwtBearersetup.I cannot set a custom
AuthorizationPolicyor override how Elsa handles identity validation for/elsa/apiroutes. For example:I cannot disable Elsa's default authentication pipeline (
UseDefaultAuthentication) without breaking the API route security. Elsa automatically configures JWT auth, which causes conflicts if ABP already configured JWT.The only workaround I found was to manually inject a fake identity via custom middleware for
/elsa/api, like so:While this works, it’s not a clean or scalable solution.
💡 Feature Requests / Suggestions
UseDefaultAuthentication()when callingAddElsa().AuthorizationPolicywhen configuringUseWorkflowsApi().📌 Notes
The closest working example I found is from this PoC repo by @sfmskywalker:
https://github.com/sfmskywalker/abp-elsa-poc
However, it uses a pre-release build with custom patches and isn’t directly usable in production.
🙏 Request
What’s the recommended approach to:
Would love feedback or guidance from the Elsa team or community.
Beta Was this translation helpful? Give feedback.
All reactions