Hi I've tried to make the recent versions work. Seems like I can get the authentication header to be added to the requests.
window.ENV['simple-auth'] = {
authorizer: 'authorizer:token'
};
window.ENV['simple-auth-token'] = {
serverTokenEndpoint: 'http://localhost:1337/api/v1/login',
authorizationPrefix: '',
tokenPropertyName: 'token',
authorizationHeaderName: 'access_token',
identificationField: 'username'
};
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
model: function() {
return this.store.find('testrestrictedmodel');
}
});