I’m trying to achieve a Devops workflow between our Q&A Kubernetes and Forest.
We are already creating DEV env from localhost. The purpose here is to generate a Forest environment for Q&A when our PR Github generate our app for Q&A too.
I have created the K8 Forest pod and everything is ok thanks to Forest Toolbet. But when I’m going to my Forest environment I see a popin telling me “Unable to authenticate you. We can’t reach your server. Please check that your admin backend is correctly configured and running.”
Hello,
Can I have your project name please? It will help us to debug yourself.
This modal is displayed, when forestadmin does not have access to your agent. A lot of reasons can cause this problem (bad credentials, bad agent url etc.)
To find the cause of your problem, please,
Can you open your console and share the trace of the failing requests?
Can you see a request on your agent (admin backend) side?
Yes I can see logs when I’m refreshing the page with popin on Forest:
Your application is listening on port 3310.
[forest] 🌳🌳🌳 Checking need for apimap update...
Your admin panel is available here: https://app.forestadmin.com/projects
[forest] 🌳🌳🌳 No change in apimap, nothing sent to Forest.
POST /forest/authentication 200 1020 - 138.629 ms
POST /forest/authentication 200 1020 - 10.591 ms
POST /forest/authentication 200 1020 - 2.606 ms
POST /forest/authentication 200 1020 - 2.966 ms
> node ./server.js
Your application is listening on port 3310.
[forest] 🌳🌳🌳 Checking need for apimap update...
[forest] 🌳🌳🌳 No change in apimap, nothing sent to Forest.
Your admin panel is available here: https://app.forestadmin.com/projects
OPTIONS /forest/authentication 204 0 - 2.428 ms
POST /forest/authentication 200 1056 - 152.652 ms
POST /forest/authentication 200 1056 - 11.927 ms
POST /forest/authentication 200 1056 - 3.148 ms
POST /forest/authentication 200 1056 - 3.693 ms
POST /forest/authentication 200 1056 - 2.529 ms
On the other hand, in the front it will always look for a localhost
{
"errors": [
{
"status": 400,
"detail": "The redirect uri must be one of https://myurl/forest/authentication/callback. Received \"http://localhost:3310/forest/authentication/callback\"",
"meta": {},
"name": "InvalidRedirectUriError"
}
]
}