我想使用ember-simple-auth和ember-cli-simple-auth-token,为此,我安装并放入我的配置中:
ENV['simple-auth-token'] = {
identificationField: 'email',
serverTokenEndpoint: 'http://localhost:3000/token'
};
但我一直看到这条消息:
No authorizer was configured for Ember Simple Auth - specify one if backend requests need to be authorized.
我安装了:
ember install ember-cli-simple-auth
ember install ember-cli-simple-auth-token
然后生成:
ember g simple-auth-token ember g simple-auth-token
我错过了一些配置吗?
感谢。
答案 0 :(得分:0)
您还需要配置:
ENV['simple-auth'] = {
authorizer: 'simple-auth-authorizer:token'
}
您还应该记住,您已经安装了弃用版的Simple Auth。您现在应该使用ember-simple-auth
。