【发布时间】:2016-06-17 12:02:39
【问题描述】:
我试图找出授权者:应用程序在请求中的设置位置。它应该在标题中的某个地方吗?从应用程序发出请求时,我无法在 nodejs 端点的请求中找到它。
我在 ember (adapter/application.js) 中的代码是:
import DS from "ember-data";
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';
export default DS.RESTAdapter.extend(DataAdapterMixin, {
authorizer: 'authorizer:application',
而且端点很简单:
exports.getAuthorizer = function(req, res) {
console.log(req);
}
我已经记录了req,希望能在里面找到授权人,但找不到。
如果您需要更多信息,请告诉我,谢谢
ember-simple-auth-token:https://github.com/jpadilla/ember-simple-auth-token
【问题讨论】:
标签: json node.js session ember.js ember-simple-auth