We have changed the backend URL for our production environment. We have changed the “Admin backend URL” value in the Settings area of the site according to reflect the new URL and the site works as expected.
I noticed that the deployed backend still had the old URL in the APPLICATION_URL environment variable so I amended it to the new URL and re-deployed the backend.
The correct URL stored in the APPLICATION_URL environment variable on the backend server would enable the user to authenticate and use the site.
All users see a “Cannot authenticate you” message repeatedly despite entering correct credentials. This message is consistent with an incorrectly set APPLICATION_URL.
Reverting the APPLICATION_URL environment variable back to the old URL allows users to authenticate and use the site as expected.
The logs do not show anything besides a POST /forest/authentication request returning a 200 response.
Please provide any relevant information about your setup.
- Package Version:
- Express Version:
- Sequelize Version:
- Liana Version: 7.3.1
- Node version: 10.24.1
- Database Dialect: Postgres
- Database Version: 12
- Project Name: Oak National Academy