I'm using ember-simple-auth with ember-simple-auth-token for authentication API, and i'm having the same issue from this post, but the problem is.. i can't figure it out how to fix.
The server is clearly responding with the token, and every subsequent request isn't with the token in the header.
Just to confirm.. GET requests should have the token in the header, right??
That's my options:
ENV['simple-auth'] = {
authorizer: 'simple-auth-authorizer:token',
authenticationRoute: 'login',
routeAfterAuthentication: '/'
};
ENV['simple-auth-token'] = {
identificationField: 'email',
serverTokenEndpoint: 'http://localhost:3000/users/compare',
tokenPropertyName: 'token',
authorizationPrefix: 'Bearer ',
authorizationHeaderName: 'Authorization',
headers: {}
};
Aucun commentaire:
Enregistrer un commentaire