passport / discuss

A forum for discussing topics related to the usage of Passport.js.
1 stars 0 forks source link

Can I change the Strategy parameters at run-time? #35

Open bbalban opened 5 years ago

bbalban commented 5 years ago

Hello, I want to use a different cliendID, clientSecret and callback URL at run-time, e.g. per-request based on the "HOST" header.

I understand I can create a different strategy for each, but that is overkill, since I want to keep everything about the strategy the same, except the input parameters.

Is this possible, and even if not, can you suggest a decent shortcut? I am happy implementing temporary hacks :)

Thanks! Bahadir