Composer-rest-server with passport-local strategy

前端 未结 2 1125
独厮守ぢ
独厮守ぢ 2021-01-25 10:10

I am not able to find a working solution to authenticate using local strategy in composer-rest-server. In fact only one working solution is using github. I tried setting up the

相关标签:
2条回答
  • 2021-01-25 10:15

    Others may post a solution, but you may wish to refer to these links: Where to put PassportJs local strategy in an express application? and https://github.com/strongloop/loopback-example-passport/issues/99 and How to use passport-local to authenticate in composer rest server

    0 讨论(0)
  • 2021-01-25 10:16

    Solved this by changing the callback function to default one in passport-configurator.js

    0 讨论(0)
提交回复
热议问题