How to configure Basic Auth on to Forge App

Hello, I’m integrating Wazuh with a Forge app. The Wazuh API uses Basic Authentication to obtain a token first using the API username and password.

I asked this question in the Atlassian Community, and I was told that Forge apps don’t support Basic Auth natively. Is there any workaround to achieve this?
This is my code:

Alternatively, is there a non-Forge approach that would allow me to display data from Wazuh in a Confluence app?

I want to create a table of report from wazuh and display it to confluence like this:

1 Like

Forge apps can use basic auth to communicate with external APIs. The code you used should work, but you need to set the environment variables using the Forge CLI: