Hi there,
I came across an issue when a Resource (custom-auth protected) is accessed in a function in a workflow.
The issue is that everything works in testing except when running the whole workflow.
Some key info:
- The API I use does not make good use of status code, every request is a 200.
- The auth workflow is simple: submit a login/pwd => get a token => use token in a header
- I use the custom auth builder and the last step is "DEFINE VARIABLE"
- It works when unit testing (i.e. button labelled "test")
I created a Function in the Workflow panel that performs (function query to this resource). Then I call this function from a code block. This is where I think the auth is somehow lost.