mercredi 11 novembre 2015

Configuring ember-simple-auth with ember-cli-simple-auth-token

I would like to use ember-simple-auth with ember-cli-simple-auth-token , for this, i installed and put in my configs:

  ENV['simple-auth-token'] = {
    identificationField: 'email',
    serverTokenEndpoint: 'http://localhost:3000/token'
  };

But i keep seen this message:

No authorizer was configured for Ember Simple Auth - specify one if backend requests need to be authorized.

I installed:

ember install ember-cli-simple-auth
ember install ember-cli-simple-auth-token

Then generate:

ember g simple-auth-token ember g simple-auth-token

Am i missing some configuration?

Thanks.

Aucun commentaire:

Enregistrer un commentaire