Okta for Express JS works localhost but not behind AWS application load balancer

Hello, I used the Okta documentation at Add user authentication to your Node.js Express app | Okta Developer to set up Okta on an Express js app. It runs fine on a container on localhost.

When I deploy it to ECS behind an application load balancer, attempting to hit the Okta protected route times out, I can see that the application is authenticating against the Okta tenant, and a callback code is being passed back to the application, but I am unable to access the Okta protected route, and the ALB is throwing a 504.

Hi there,

We have some documentation around configuring the ASP.NET application to a cloud service - okta-aspnet/docs/aspnetcore-mvc.md at master · okta/okta-aspnet · GitHub
Please check if this can be adapted for your Express JS app as well.
Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.