SCOPE_* vars are unused now
This commit is contained in:
@@ -5,8 +5,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
var accesscontrol = require('../../accesscontrol.js'),
|
||||
async = require('async'),
|
||||
var async = require('async'),
|
||||
constants = require('../../constants.js'),
|
||||
database = require('../../database.js'),
|
||||
domains = require('../../domains.js'),
|
||||
@@ -181,7 +180,7 @@ describe('Users API', function () {
|
||||
identifier: user_0.id,
|
||||
clientId: null,
|
||||
expires: expires,
|
||||
scope: accesscontrol.SCOPE_PROFILE,
|
||||
scope: 'unused',
|
||||
name: 'tokenname'
|
||||
};
|
||||
|
||||
@@ -296,7 +295,7 @@ describe('Users API', function () {
|
||||
user_1 = result.body;
|
||||
|
||||
// HACK to get a token for second user (passwords are generated and the user should have gotten a password setup link...)
|
||||
tokendb.add({ id: 'tid-3', accessToken: token_1, identifier: user_1.id, clientId: 'test-client-id', expires: Date.now() + 10000, scope: accesscontrol.SCOPE_PROFILE, name: 'fromtest' }, done);
|
||||
tokendb.add({ id: 'tid-3', accessToken: token_1, identifier: user_1.id, clientId: 'test-client-id', expires: Date.now() + 10000, scope: 'unused', name: 'fromtest' }, done);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -676,7 +675,7 @@ describe('Users API', function () {
|
||||
userToken = hat(8 * 32);
|
||||
var expires = Date.now() + 2000; // 1 sec
|
||||
|
||||
tokendb.add({ id: 'tid-2', accessToken: userToken, identifier: user_4.id, clientId: null, expires: expires, scope: accesscontrol.SCOPE_PROFILE, name: '' }, done);
|
||||
tokendb.add({ id: 'tid-2', accessToken: userToken, identifier: user_4.id, clientId: null, expires: expires, scope: 'unused', name: '' }, done);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user