Authentication failing in production

Feature(s) impacted

Authentication

Observed behavior

Authentication is failing (see first screenshot).

Expected behavior

Authentication to pass.

Failure Logs

The authentification succeed in development environnement but fails in production.
It might be because the callback api call is pointing to a wrong URL.
The URL misses the “/api” prefix in production but not in development.
In both cases the agent URL is the same (see last screenshot).

Context

  • Project name: Capsule
  • Team name: Founders
  • Environment name: production
  • Agent type & version: @forestadmin/agent 1.0.0-beta.47
  • Recent changes made on your end if any: deployed to production

I found the answer to my problem !
It was a silly mistake: the agentUrl was not the coherent with the one on the Forest interface.

Working example:

This example works because forestAgentUrl == backendAgentUrl + backendPrefix.

Note: it feels a bit redundant to have this info both on the server and the client.