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

localEndpoint without local strategy #359

buildog opened this Issue Dec 3, 2016 · 0 comments


None yet
1 participant
Copy link

buildog commented Dec 3, 2016

I'm trying to authenticate without a local strategy, the way to reproduce this is via the cli just uncheck local, check facebook, and set Postgres as the db.

From #159 (comment) I saw that I had to config manually the userEndpoint to /users , without this the auth process will fail.

  config.userEndpoint = '/users';

Everything happen correctly, so I can store the jwt token in localStorage. But when I try to authenticate (via socket) it break the svr cause of an undefined localEndpoint :


localStorage.setItem('feathers-jwt', cookies[0].value);


Feathers application started on localhost:3030
          app.service(options.localEndpoint).create(data, _params).then(function (response) {

TypeError: Cannot read property 'create' of undefined
    at Socket.<anonymous> (/Users/builldog/Documents/moulinette-api/node_modules/feathers-authentication/lib/middleware/sockets.js:64:45)
    at emitTwo (events.js:106:13)
    at Socket.emit (events.js:191:7)
    at /Users/builldog/Documents/moulinette-api/node_modules/
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

On the other hand, from the CLI if I keep the local strategy alongside the oAuth2 then the config of the model look like wrong :

    email: {
      type: Sequelize.STRING,
      allowNull: false,
      unique: true
    password: {
      type: Sequelize.STRING,
      allowNull: false

Anyway, if I allowNull, and try to login I still get:

(node:34718) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): NotAuthenticated: Invalid login.

@buildog buildog closed this Dec 9, 2016

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.
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.