Stuck with " Unable to authenticate you "

Feature(s) impacted

Authentication

Observed behavior

We’re currently stuck and nobody from the team can login, in all environments

Expected behavior

Login

Failure Logs

The liana returns a 200 code on authentication
Then this request fails: http://localhost/forest/authentication/callback?code=…&state=…

Why a request in sent to localhost ?

Context

Please provide in this mandatory section, the relevant information about your configuration:

  • Project name: Bits
  • Team name: Operations
  • Environment name: Production
  • Agent type & version: 7.0.0

Hello @Lucas_Scariot! Welcome to our community. :confetti_ball:

We can see a CORS issue on the /forest/authentication/callback route and it calls localhost instead of your actual backend URL. This is probably due to a misconfigured APPLICATION_URL.

Can you check that the APPLICATION_URL environment variable matches your actual backend URL?

Let me know if it helps. :pray:

Kind regards,
Morgan

APPLICATION_URL was missing indeed, thanks for the answer !
It could be interesting to have warning / error messages when an environment variable is missing !

Thanks again

2 Likes

Hey again @Lucas_Scariot,

You’re welcome.

Indeed, I will push your feedback to our team to improve our experience in the future.

Kind regards,
Morgan