Heartbeat and custom authentication


I would like to configure Heartbeat in order to sample an authenticated http endpoint.
This endpoint is authenticated with a JWT token, which I have to obtain with another call with basic auth.

Is it possible to implement a custom authentication "script" or "module" in Heartbeat, in order to do a custom authentication like the one I described?


Hi Tommaso,

We don’t currently support this in Heartbeat today.

You could create a Synthetics user journey to write a multi step script to get the response from the first step to use in the request on the second step, but this does include the overhead of running a full browser (even if you just end up implementing a lightweight HTTP request in your user journey script).

We have a stub issue Multi Step API Journeys · Issue #137 · elastic/synthetics · GitHub to cover this kind of use case.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.