elsa-workflows / elsa-workflows/elsa-core

Middleware not invoked when using custom endpoints

Open
#5,016 3 comments 0 reactions 0 assignees View on GitHub
elsa 3 triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

Our system passes some claims to Elsa via JWT. We then have middleware to read the token. All works fine when using the built in /Execute endpoint, but if we try and use any custom HTTP activities the middleware is never invoked. Is there a way to get this to work?

Contributor guide

Open the contributing guide

Research direction

Start by comparing how the built-in /Execute endpoint and custom HTTP activities invoke middleware, then trace where JWT claims are read. Done means the middleware is invoked for custom endpoints and the claims are available as they are for /Execute.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.