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

Authentication local strategy not working with a Custom User service #672

Closed
LetsDoIt- opened this Issue Apr 28, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@LetsDoIt-
Copy link

LetsDoIt- commented Apr 28, 2018

I am using a custom service to manage users and when i try to authenticate using email password it gives an error : a record with email of 'sgd@sgd100.com' did not exist and Invalid login error

But when i changed to in-memory user service it works like a charm.

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working): Feathers Auth 2.1.5

NodeJS version: 8.7.0

Operating System: Mac OS X

Browser Version:

React Native Version:

Module Loader:

@daffl

This comment has been minimized.

Copy link
Member

daffl commented Apr 28, 2018

At the moment a custom users service has to support

  • An id property which contains the name of the id field
  • Support a find method with params.query = { email } (email or usernameField ) to find the user/entity by the field name. It will work with or without pagination (either an array or an object with data in the array)

@daffl daffl closed this Apr 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.