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
191 stars 177 forks source link

Adding option to set passport name, to enable multiple strategies. #11

Closed fiddur closed 8 years ago

fiddur commented 9 years ago

To be able to use several openidconnect-strategy instances, they must have different names.

This adds an option to set a name other than 'openidconnect'.

For example, I setup one dynamic openidconnect, and one with pre-set authorizationURL, clientID etc for Google OpenID Connect (since they haven't implemented dynamic registration and to have a shortcut button).