I have successfully set-up Auth0 inside an Expressjs based site using express-openid-connect. I have also set “Allowed Callback URLs” and “Allowed Logout URLs” for the relevant application via the dashboard.
From what I understand “Allowed Callback URLs” is the list of URL to which Auth0 will send a user after they have successfully authenticated. I have only one URL configured here for example:
http://localhost:3000/profile
However, after successful authentication, I am always send to the landing page aka http://localhost:3000. If I for example try to directly access http://localhost:3000/profile, I am sent to the universal login page but, post authentication, I am again returned to http://localhost:3000
I have also added and entry such as the following to the config object in app.js
...
redirectUriPath: "/profile",
...
This unfortunately still yields the same end result. Has anyone else run into this same problem? Is there some piece of configuration that I am missing?
I looked at the redirect_uri GET parameter that is passed to the https://dev-myproject.auth0.com/login page (where you can select an authentication method) and indeed, the value of the redirectUriPath configuration setting is being passed along properly (&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Fuser).
We’ll do a release shortly - within the next couple of days all going well - would you mind watching the releases and please let us know if you have further problems with redirect, after that: Releases · auth0/express-openid-connect · GitHub