5 months ago
I have a fairly simple nodeJS/express app. this runs fine on my local mac, but I can't figure out how to get the auth0 authentication flows to work when the app is deployed on railway.
it seems to be related to the fact that on railway i have to run the http server at 0.0.0.0:443 whereas on my mac i run it at e.g mac-mini.local:443 and auth0 authentication flows work fine.
I've set up the "Allowed callback URL's" in the auth0 config to include https://0.0.0.0:443/callback etc, but after i log in i'm seeing errors like
"Not allowed to use restricted network host "0.0.0.0": https://0.0.0.0/callback"
Is there a guide somewhere on how to configure auth0/your app when running on railway?
thanks - any suggestions appreciated.
1 Replies
5 months ago
figured it out. just needed to set the base URI for auth0 to the public railroad service URI, rather than 0.0.0.0. in retrospect, obvious.
Status changed to Solved brody • 6 months ago