404 POST http://localhost:3000/users/sign_in 401 (Unauthorized) (EDİTED)

Hi,

Try to update your application adapter as follow

import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';

export default DS.JSONAPIAdapter.extend(DataAdapterMixin, {
  session    : Ember.inject.service(),
  authorizer : 'authorizer:application',

And, If you still have same issue. Just spent some time on below links.

  1. GitHub - simplabs/ember-simple-auth: A library for implementing authentication/authorization in Ember.js applications.
  2. https://github.com/simplabs/ember-simple-auth/tree/master/tests/dummy
1 Like