You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
when using authentication service APIs to login getting following error:
Error: No factory found for sf.passport.strategyFactory.localPassword
API checked: auth/login(Error: No factory found for sf.passport.strategyFactory.localPassword)
auth/login-token(Error: No factory found for sf.passport.strategyFactory.ResourceOwner)
To Reproduce
Steps to reproduce the behavior:
setup authentication microservice using sourceloop CLI.
create user through migration or manual
hit Login API
Expected behavior
user should be able to login successfully and it should return token to access to other resources
Hello @Sumit9669 the Local Passport strategy is not a mandatory strategy its an optional feature
so to use that you are required to bind the strategy to its provider. you can refer the docs here
Describe the bug
when using authentication service APIs to login getting following error:
Error: No factory found for sf.passport.strategyFactory.localPassword
API checked: auth/login(Error: No factory found for sf.passport.strategyFactory.localPassword)
auth/login-token(Error: No factory found for sf.passport.strategyFactory.ResourceOwner)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
user should be able to login successfully and it should return token to access to other resources
Screenshots
Additional context
loopback cli: 6.0.0
sourceloop cli: 9.0.2
node:18.20.4
lerna 5.2.4
The text was updated successfully, but these errors were encountered: