Get token OAuth from Heartbeat before monitoring a service

Hi,

We have a health check service that for security reasons we have secured by OAuth, then to invoke it we need to have a valid token. Our current monitor is as follows:

Is it possible to get a token every so often with heartbeat and add that token to the health check request headers without the need to use a static token as an API Key?

Regards and thanks in advance.

1 Like

We do currently support that for browser based checks, since they have a full scripting environment with a browser that's possible.

That's not something we currently support for lightweight checks unfortunately. We'd like to add it however, and are tracking that request here: Multi Step API Journeys · Issue #137 · elastic/synthetics · GitHub

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