Is it possible to execute a SPOE agent after some http-request directives in the frontend section but before other?
My configuration is as follows: a LUA script extracts some data from JWT token and I want to send it to a SPOE agent for further processing. The problem is that in the SPOE agent configuration I have the following line:
event on-frontend-http-request
which causes the SPOE agent to run before the LUA script. However if I change it to on-backend-http-request
the data from LUA script is available in the SPOE agent but it is too late - I need to either accept or reject the request based on results returned from the SPOE agent. And I can only do it in the frontend section using http-request deny ...
.
1 post - 1 participant