jaredhanson / passport-http

HTTP Basic and Digest authentication strategies for Passport and Node.js.

Home Page:https://www.passportjs.org/packages/passport-http/?utm_source=github&utm_medium=referral&utm_campaign=passport-http&utm_content=about

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Two different basic strategies

tielur opened this issue · comments

I'm trying to implement two different basic strategies, with two different sets of correct tokens. Right now it looks like the basic strategy hard codes the name to basic, it would be nice if you could set this via options that way you could have multiple basic strategies with different names.

If there is a better way to go about handling this I'd love to hear about it.

It looks like this is already supported by passport.

passport.use('another-basic-strat', new BasicStrategy({...