-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[oidc-middleware] It should be possible to use multiple instances of ExpressOIDC #18
Comments
…xist The previous use of a static Passport instance prevented the parallel use of multiple ExpressOIDC instances. Adding the Passport instance to the context makes this possible. Resolves: #497
I've run into this. It seems like the PR provided some guidance that should work for this. I need to implement a white labeled site, serving under multiple host names and this is a real blocker. I'm hoping that perhaps the sign-in-widget with PKCE might be a way around this. |
@rcollette - I cannot promise any movement on this problem, but if you have any details you can share about the general use case, that could be informative. Would a user be consistently served by the same express instance during their session (so there is no need to share the token among the servers)? |
There can definitely be multiple express instances, either on load balanced servers or multiple forked processes on the same machine. But since Session, and in my case backed by MongoDb, is used for the OIDC middleware, I'm not sure why multiple instances would be a concern. The use case is that we have a site, having multiple domain names, where the look and feel (chrome) of the site is unique for each domain. This means that a callback on any given instance, must allow the use of multiple trusted host names. A user session would consistently use one host name. If I log on or sign on at a.com then the callback would go to a.com |
Internal ref: OKTA-291513 |
I'm submitting this issue for the package(s):
I'm submitting a:
Current behavior
Currently, it is not possible to use multiple instances of ExpressOIDC in one and the same Node.js app.
Expected behavior
It should be possible. This is e.g. useful together with the "vhost" package.
Minimal reproduction of the problem with instructions
Extra information about the use case/user story you are trying to implement
Environment
node -v
): v10.15.1The text was updated successfully, but these errors were encountered: