koa-passport
koa-passport copied to clipboard
Passing multiple strategies to passport.authenticate()
Passport seems to support multiple strategies being passed in an array to passport.authenticate()
In trying to get this to work with koa-passport
though, I've been unable to get subsequent strategies tried after the first fails. I've tried debugging it, and it appears that koa-passport
largely implements its own logic for how authenticate
flows and makes no attempt to support multiple strategies. Is this an accurate assessment or am I just doing it wrong?
The logic koa-passport
implements is just a wrapper necessary to integrate it into koa
. It ultimately calls the original passport
authenticate()
method https://github.com/rkusa/koa-passport/blob/master/lib/framework/koa.js#L102.
However, I've personally never used passport
in that way, so it is possible that this is a bug.