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

Unknown authentication strategy "local" #18

Open
slinker009 opened this issue Mar 26, 2015 · 7 comments
Open

Unknown authentication strategy "local" #18

slinker009 opened this issue Mar 26, 2015 · 7 comments

Comments

@slinker009
Copy link

Hi,my english is a little.
I Install and run the code, I register a new user and send messages, but when I logout and try to login again with the username and password the app show error 500

Unknown authentication strategy "local"

error: Sending 500 ("Server Error") response:
Error: Unknown authentication strategy "local"
at attempt (c:\nodejs\sailng\node_modules\passport\lib\middleware\authentica
te.js:166:37)
at authenticate (c:\nodejs\sailng\node_modules\passport\lib\middleware\authe
nticate.js:342:7)
at Authenticator.passport.callback (c:\nodejs\sailng\api\services\passport.j
s:250:40)
at Authenticator.bound [as callback](c:nodejssailngnode_modulessailsno
de_moduleslodashdistlodash.js:729:21)
at Object.AuthController.callback (c:\nodejs\sailng\api\controllers\AuthCont
roller.js:121:14)
at bound (c:\nodejs\sailng\node_modules\sails\node_modules\lodash\dist\lodas
h.js:729:21)
at routeTargetFnWrapper (c:\nodejs\sailng\node_modules\sails\lib\router\bind
.js:179:5)
at callbacks (c:\nodejs\sailng\node_modules\sails\node_modules\express\lib\r
outer\index.js:164:37)
at param (c:\nodejs\sailng\node_modules\sails\node_modules\express\lib\route
r\index.js:138:11)
at pass (c:\nodejs\sailng\node_modules\sails\node_modules\express\lib\router
\index.js:145:5)
at nextRoute (c:\nodejs\sailng\node_modules\sails\node_modules\express\lib\r
outer\index.js:100:7)
at callbacks (c:\nodejs\sailng\node_modules\sails\node_modules\express\lib\r
outer\index.js:167:11)
at c:\nodejs\sailng\node_modules\sails\lib\router\bind.js:187:7
at c:\nodejs\sailng\api\policies\passport.js:32:7
at SessionStrategy.strategy.pass (c:\nodejs\sailng\node_modules\passport\lib
\middleware\authenticate.js:318:9)
at SessionStrategy.authenticate (c:\nodejs\sailng\node_modules\passport\lib
strategies\session.js:67:10) [Error: Unknown authentication strategy "local"]

I use Windows 8 and Firefox 36.0.4 for this test

@huguangju
Copy link

I also encountered the same problem.

mac 10.10.2 (14C109)
chrome 42.0.2311.135 (64-bit)

After registering and login operation ,this error is reported.

@maegnes
Copy link

maegnes commented Aug 25, 2015

Also encountered the problem. Does anyone know a solution in the meantime?

@dermatologist
Copy link

+1

@ram-you
Copy link

ram-you commented Jan 6, 2016

Same problem.

@oraxpert
Copy link

oraxpert commented Jun 9, 2016

me too ...

@shokry-suleiman
Copy link

mee too

@AlexandreUser
Copy link

any fix?

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

8 participants