Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing multiple strategies to passport.authenticate() #142

Open
themightychris opened this issue May 29, 2020 · 1 comment
Open

Passing multiple strategies to passport.authenticate() #142

themightychris opened this issue May 29, 2020 · 1 comment

Comments

@themightychris
Copy link

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?

@rkusa
Copy link
Owner

rkusa commented May 30, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants