jaredhanson / passport-openidconnect

OpenID Connect authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-openidconnect/?utm_source=github&utm_medium=referral&utm_campaign=passport-openidconnect&utm_content=about
MIT License
188 stars 173 forks source link

Is this strategy a singleton? #67

Open malcolmm83 opened 6 years ago

malcolmm83 commented 6 years ago

I'm using Gluu IDP and it uses passport for social login. It comes out of the box with strategies for popular social sites (not strictly OIDC). I set up an external OIDC provider using this library and it's working. I tried to set up a couple of others but if I enable a second OIDC provider, it seems to hijack the first one as well. Providers not using this strategy seem to coexist fine. I backed off to just one OIDC provider cause I'm demoing tomorrow, so I haven't mapped out the full scope. Is it expected that I can support multiple instances of this strategy configured for different providers? If so, then the fault may be with Gluu.

j-tegen commented 4 years ago

I'm having this issue as well. We're trying to connect to multiple different Scandinavian E-ID providers using this strategy, but can't figure out a way to set it up so we can either have multiple strategies, or dynamically provide the configuration based on the request.

Does anyone have any pointers?

f4z3k4s commented 5 months ago

I think this is still relevant in 2024, anyone, any thoughts on how to support multiple providers?