vendredi 4 décembre 2015

Requests without token using ember-simple-auth

I'm using ember-simple-auth 0.8.0 with ember-cli-simple-auth-token ^0.7.3 and i'm having some problems with send the token in every request. I'm receiving the token as i should, but the requests after that doesn't have the token.

  ENV['simple-auth'] = {
    authorizer: 'simple-auth-authorizer:token',
    authenticationRoute: 'login.index',
    routeAfterAuthentication: 'index.index'
  };

  ENV['simple-auth-token'] = {
    identificationField: 'email',
    serverTokenEndpoint: 'http://localhost:3000/users/compare',
    tokenPropertyName: 'token',
    authorizationPrefix: 'Bearer ',
    authorizationHeaderName: 'Authorization',
    headers: {}
  };

Any ideas why?




Aucun commentaire:

Enregistrer un commentaire