SYMBOL INDEX (299 symbols across 55 files) FILE: common/models/access-token.js constant DEFAULT_TOKEN_LEN (line 15) | const DEFAULT_TOKEN_LEN = 64; FILE: common/models/acl.js function saveAuthorizedRolesToRemotingContext (line 542) | function saveAuthorizedRolesToRemotingContext(remotingContext, authorize... FILE: common/models/application.js function generateKey (line 16) | function generateKey(hmacKey, algorithm, encoding) { FILE: common/models/change.js constant CJSON (line 16) | const CJSON = {stringify: require('canonical-json')}; function next (line 95) | function next(err) { function prepareAndDoRectify (line 205) | function prepareAndDoRectify(rev) { function doRectify (line 223) | function doRectify(checkpoint, rev) { function Conflict (line 580) | function Conflict(modelId, SourceModel, TargetModel) { function getSourceModel (line 608) | function getSourceModel(cb) { function getTargetModel (line 616) | function getTargetModel(cb) { function done (line 624) | function done(err) { function getSourceChange (line 648) | function getSourceChange(cb) { function getTargetChange (line 657) | function getTargetChange(cb) { function done (line 666) | function done(err) { function done (line 735) | function done(err) { function done (line 783) | function done(err) { FILE: common/models/key-value-model.js function throwNotAttached (line 223) | function throwNotAttached(modelName, methodName) { function convertNullToNotFoundError (line 233) | function convertNullToNotFoundError(ctx, cb) { FILE: common/models/role.js function listByPrincipalType (line 126) | function listByPrincipalType(context, model, principalType, query, callb... function isUserClass (line 188) | function isUserClass(modelClass) { function matches (line 201) | function matches(id1, id2) { function legacyOwnershipCheck (line 309) | function legacyOwnershipCheck(inst) { function checkOwnership (line 350) | function checkOwnership(inst) { function _isMultipleUsers (line 404) | function _isMultipleUsers(userModel) { FILE: common/models/user.js constant SALT_WORK_FACTOR (line 17) | const SALT_WORK_FACTOR = 10; constant MAX_PASSWORD_LENGTH (line 21) | const MAX_PASSWORD_LENGTH = 72; constant DEFAULT_TTL (line 35) | const DEFAULT_TTL = 1209600; constant DEFAULT_RESET_PW_TTL (line 36) | const DEFAULT_RESET_PW_TTL = 15 * 60; constant DEFAULT_MAX_TTL (line 37) | const DEFAULT_MAX_TTL = 31556926; function splitPrincipal (line 132) | function splitPrincipal(name, realmDelimiter) { function tokenHandler (line 276) | function tokenHandler(err, token) { function addTokenToUserAndSave (line 806) | function addTokenToUserAndSave(err, token) { function sendEmail (line 816) | function sendEmail(user) { function assertVerifyOptions (line 861) | function assertVerifyOptions(verifyOptions) { function createVerificationEmailBody (line 875) | function createVerificationEmailBody(verifyOptions, options, cb) { function onTokenCreated (line 1012) | function onTokenCreated(err, accessToken) { function getUserIdFromRequestContext (line 1240) | function getUserIdFromRequestContext(ctx) { function emailValidator (line 1428) | function emailValidator(err, done) { function joinUrlPath (line 1439) | function joinUrlPath(args) { FILE: example/replication/app.js constant SPEED (line 16) | const SPEED = process.env.SPEED || 100; function createSomeInitialSourceData (line 72) | function createSomeInitialSourceData() { function replicateSourceToTarget (line 80) | function replicateSourceToTarget() { function resolveAllConflicts (line 86) | function resolveAllConflicts() { function updateSomeTargetData (line 94) | function updateSomeTargetData() { function createMoreSourceData (line 101) | function createMoreSourceData() { function createEvenMoreSourceData (line 105) | function createEvenMoreSourceData() { function updateSomeSourceDataCausingAConflict (line 109) | function updateSomeSourceDataCausingAConflict() { function deleteAllSourceData (line 116) | function deleteAllSourceData() { function createSomeNewSourceData (line 120) | function createSomeNewSourceData() { function list (line 128) | function list(model, msg) { function run (line 138) | function run(steps) { FILE: lib/access-context.js constant DEFAULT_SCOPES (line 11) | const DEFAULT_SCOPES = ['DEFAULT']; function AccessContext (line 43) | function AccessContext(context) { function Principal (line 279) | function Principal(type, id, name) { function AccessRequest (line 322) | function AccessRequest(model, property, accessType, permission, methodNa... FILE: lib/application.js function App (line 44) | function App() { function scheduleVerification (line 466) | function scheduleVerification(Model, verifyFn) { function verifyAccessTokenRelations (line 474) | function verifyAccessTokenRelations(Model) { function verifyUserRelations (line 502) | function verifyUserRelations(Model) { function dataSourcesFromConfig (line 549) | function dataSourcesFromConfig(name, config, connectorRegistry, registry) { function configureModel (line 573) | function configureModel(ModelCtor, config, app) { function clearHandlerCache (line 597) | function clearHandlerCache(app) { FILE: lib/browser-express.js function browserExpress (line 12) | function browserExpress() { function BrowserExpress (line 18) | function BrowserExpress() { FILE: lib/builtin-models.js function createModel (line 68) | function createModel(definitionJson, customizeFn) { function cloneDeepJson (line 86) | function cloneDeepJson(obj) { FILE: lib/configure-shared-methods.js function escapeRegExp (line 78) | function escapeRegExp(str) { FILE: lib/connectors/base-connector.js function Connector (line 30) | function Connector(options) { FILE: lib/connectors/mail.js function MailConnector (line 27) | function MailConnector(settings) { function Mailer (line 95) | function Mailer() { FILE: lib/connectors/memory.js function Memory (line 31) | function Memory() { FILE: lib/loopback.js function createApplication (line 75) | function createApplication(options) { function mixin (line 121) | function mixin(source) { FILE: lib/model.js function setupOptionsArgs (line 480) | function setupOptionsArgs(accepts, modelClass) { function createOptionsViaModelMethod (line 494) | function createOptionsViaModelMethod(ctx) { function convertNullToNotFoundError (line 564) | function convertNullToNotFoundError(toModelName, ctx, cb) { FILE: lib/persisted-model.js constant REPLICATION_CHUNK_SIZE (line 20) | const REPLICATION_CHUNK_SIZE = -1; function throwNotAttached (line 70) | function throwNotAttached(modelName, methodName) { function convertNullToNotFoundError (line 85) | function convertNullToNotFoundError(ctx, cb) { function save (line 451) | function save() { function setRemoting (line 642) | function setRemoting(scope, name, options) { function run (line 1189) | function run(attempt, since) { function tryReplicate (line 1205) | function tryReplicate(sourceModel, targetModel, since, options, callback) { function buildLookupOfAffectedModelData (line 1482) | function buildLookupOfAffectedModelData(Model, updates, callback) { function applyUpdate (line 1497) | function applyUpdate(Model, id, current, data, change, conflicts, option... function applyCreate (line 1552) | function applyCreate(Model, id, current, data, change, conflicts, option... function applyDelete (line 1581) | function applyDelete(Model, id, current, change, conflicts, options, cb) { function cleanup (line 1707) | function cleanup() { function rectifyOnSave (line 1716) | function rectifyOnSave(ctx, next) { function rectifyOnDelete (line 1742) | function rectifyOnDelete(ctx, next) { function getIdFromWhereByModelId (line 1766) | function getIdFromWhereByModelId(Model, where) { function attachRelatedModels (line 1804) | function attachRelatedModels(self) { function changeHandler (line 1902) | function changeHandler(ctx, next) { function deleteHandler (line 1911) | function deleteHandler(ctx, next) { function createChangeObject (line 1920) | function createChangeObject(ctx, type) { function removeHandlers (line 1969) | function removeHandlers() { FILE: lib/registry.js function Registry (line 24) | function Registry() { function buildModelOptionsFromConfig (line 130) | function buildModelOptionsFromConfig(config) { function addACL (line 154) | function addACL(acls, acl) { FILE: lib/server-app.js constant BUILTIN_MIDDLEWARE (line 15) | const BUILTIN_MIDDLEWARE = {builtin: true}; function compareLayers (line 295) | function compareLayers(left, right) { FILE: lib/utils.js function createPromiseCallback (line 16) | function createPromiseCallback() { function throwPromiseNotDefined (line 28) | function throwPromiseNotDefined() { function uploadInChunks (line 42) | function uploadInChunks(largeArray, chunkSize, processFunction, cb) { function downloadInChunks (line 94) | function downloadInChunks(filter, chunkSize, processFunction, cb) { function concatResults (line 129) | function concatResults(previousResults, currentResults) { FILE: server/middleware/rest.js function rest (line 32) | function rest() { FILE: server/middleware/status.js function status (line 26) | function status() { FILE: server/middleware/token.js function rewriteUserLiteral (line 25) | function rewriteUserLiteral(req, currentUserLiteral, next) { function escapeRegExp (line 55) | function escapeRegExp(str) { function token (line 98) | function token(options) { FILE: server/middleware/url-not-found.js function urlNotFound (line 19) | function urlNotFound() { FILE: test/access-control.integration.js constant ACCESS_CONTROL_APP (line 10) | const ACCESS_CONTROL_APP = path.join(__dirname, 'fixtures', 'access-cont... constant USER (line 13) | const USER = {email: 'test@test.test', password: 'test'}; constant CURRENT_USER (line 14) | const CURRENT_USER = {email: 'current@test.test', password: 'test'}; function urlForUser (line 136) | function urlForUser() { function newUserData (line 141) | function newUserData() { function urlForBank (line 207) | function urlForBank() { function urlForAccount (line 294) | function urlForAccount() { function urlForReplaceAccountPOST (line 297) | function urlForReplaceAccountPOST() { function urlForAccount (line 360) | function urlForAccount() { function urlForReplaceAccountPOST (line 363) | function urlForReplaceAccountPOST() { FILE: test/access-token.test.js constant ACL (line 17) | let Token, ACL, User, TestModel; function mockRequest (line 606) | function mockRequest(opts) { function createTestingToken (line 774) | function createTestingToken(done) { function createTestAppAndRequest (line 785) | function createTestAppAndRequest(testToken, settings, done) { function createTestApp (line 790) | function createTestApp(testToken, settings, done) { function givenLocalTokenModel (line 864) | function givenLocalTokenModel() { FILE: test/acl.test.js constant ACL (line 11) | const ACL = loopback.ACL; function assertPermission (line 134) | function assertPermission(expectedPermission, msg) { function setupAppAndRequest (line 619) | function setupAppAndRequest() { function createACLs (line 658) | function createACLs(model, acls) { function makeAuthorizedHttpRequestOnMyTestModel (line 672) | function makeAuthorizedHttpRequestOnMyTestModel() { function setupTestModels (line 679) | function setupTestModels() { FILE: test/app.test.js function handlerThatAddsHandler (line 86) | function handlerThatAddsHandler(name) { function namedHandler (line 455) | function namedHandler(name) { function pathSavingHandler (line 462) | function pathSavingHandler() { function getObjectAndPrototypeKeys (line 470) | function getObjectAndPrototypeKeys(obj) { function verifyMiddlewarePhases (line 628) | function verifyMiddlewarePhases(names, done) { function setupTestModel (line 834) | function setupTestModel() { function setupUserModels (line 1087) | function setupUserModels(app, options, done) { function executeMiddlewareHandlers (line 1205) | function executeMiddlewareHandlers(app, urlPath, callback) { FILE: test/authorization-scopes.test.js function givenAppAndRequest (line 81) | function givenAppAndRequest() { function givenRemoteMethodWithCustomScope (line 93) | function givenRemoteMethodWithCustomScope() { function givenUser (line 113) | function givenUser() { function givenDefaultToken (line 118) | function givenDefaultToken() { function givenScopedToken (line 123) | function givenScopedToken() { FILE: test/change-stream.test.js function verifyObserversRemoval (line 125) | function verifyObserversRemoval() { FILE: test/change.test.js function rectify (line 262) | function rectify(next) { function checkpoint (line 266) | function checkpoint(next) { function update (line 276) | function update(next) { function givenChangeInstance (line 661) | function givenChangeInstance() { FILE: test/context-options.test.js function givenCategoryHasManyProductsThroughAnotherModel (line 214) | function givenCategoryHasManyProductsThroughAnotherModel() { function givenCategoryAndProduct (line 232) | function givenCategoryAndProduct() { function expectOptionsInjectedFromCategory (line 239) | function expectOptionsInjectedFromCategory() { function givenCategoryHasOneProduct (line 287) | function givenCategoryHasOneProduct() { function givenCategoryId1 (line 302) | function givenCategoryId1() { function givenProductInCategory1 (line 306) | function givenProductInCategory1() { function expectOptionsInjectedFromCategory (line 310) | function expectOptionsInjectedFromCategory() { function givenCategoryBelongsToProduct (line 332) | function givenCategoryBelongsToProduct() { function givenCategoryId1 (line 347) | function givenCategoryId1() { function givenProductInCategory1 (line 351) | function givenProductInCategory1() { function expectOptionsInjectedFromCategory (line 355) | function expectOptionsInjectedFromCategory() { function setupAppAndRequest (line 360) | function setupAppAndRequest() { function resetActualOptions (line 380) | function resetActualOptions() { function observeOptionsBeforeSave (line 384) | function observeOptionsBeforeSave() { function observeOptionsBeforeDelete (line 392) | function observeOptionsBeforeDelete() { function observeOptionsOnAccess (line 400) | function observeOptionsOnAccess() { function givenProductId1 (line 408) | function givenProductId1() { function expectInjectedOptions (line 412) | function expectInjectedOptions(name) { FILE: test/data-source.test.js function existsAndShared (line 111) | function existsAndShared(Model, name, isRemoteEnabled, isProto) { function assertValidDataSource (line 124) | function assertValidDataSource(dataSource) { FILE: test/helpers/wait-for-event.js function waitForEvent (line 10) | function waitForEvent(emitter, event) { FILE: test/integration.test.js function setupAppWithStreamingMethod (line 36) | function setupAppWithStreamingMethod() { function sendHttpRequestInOnePacket (line 77) | function sendHttpRequestInOnePacket(port, reqString, cb) { FILE: test/key-value-model.test.js constant AN_OBJECT_VALUE (line 12) | const AN_OBJECT_VALUE = {name: 'an-object'}; function setupAppAndCacheItem (line 146) | function setupAppAndCacheItem() { function setupSharedHttpServer (line 160) | function setupSharedHttpServer(done) { FILE: test/loopback.test.js function getAllMethodNamesWithoutClassName (line 526) | function getAllMethodNamesWithoutClassName(TestModel) { function setupLoopback (line 735) | function setupLoopback() { function getAllMethodNamesWithoutClassName (line 739) | function getAllMethodNamesWithoutClassName(Model) { function setupLoopback (line 896) | function setupLoopback() { function getSharedMethods (line 900) | function getSharedMethods(Model) { FILE: test/memory.test.js function count (line 37) | function count() { FILE: test/model.test.js constant ACL (line 11) | const ACL = loopback.ACL; function shouldReturn (line 703) | function shouldReturn(methodName, expectedAccessType) { function getCurrentCheckpoint (line 751) | function getCurrentCheckpoint(cb) { function checkpoint (line 758) | function checkpoint(cb) { function setupAppAndRequest (line 1033) | function setupAppAndRequest() { function createUserAndAccessToken (line 1057) | function createUserAndAccessToken() { FILE: test/multiple-user-principal-accessing-another-user-model.js function setupAppAndModels (line 152) | function setupAppAndModels() { function setupModelInstances (line 260) | function setupModelInstances() { FILE: test/multiple-user-principal-types.test.js function assertGoodToken (line 109) | function assertGoodToken(accessToken, user) { function waitForResetRequestAndVerify (line 160) | function waitForResetRequestAndVerify() { function addToAccessContext (line 264) | function addToAccessContext(list) { function isOwnerForMessage (line 554) | function isOwnerForMessage(user, msg) { function createModelWithOptions (line 571) | function createModelWithOptions(name, options) { function givenResetPasswordTokenForOneUser (line 666) | function givenResetPasswordTokenForOneUser() { function givenTokenForOneUser (line 714) | function givenTokenForOneUser() { function givenProductModelAllowingOnlyUserRoleAccess (line 744) | function givenProductModelAllowingOnlyUserRoleAccess() { function createUserModel (line 770) | function createUserModel(app, name, options) { function waitForEvent (line 777) | function waitForEvent(emitter, name) { function getIds (line 783) | function getIds(array) { FILE: test/relations.integration.js constant SIMPLE_APP (line 10) | const SIMPLE_APP = path.join(__dirname, 'fixtures', 'simple-integration-... function setup (line 350) | function setup(connecting, cb) { FILE: test/remoting.integration.js constant SIMPLE_APP (line 10) | const SIMPLE_APP = path.join(__dirname, 'fixtures', 'simple-integration-... function formatReturns (line 285) | function formatReturns(m) { function formatMethod (line 300) | function formatMethod(m) { function findClass (line 323) | function findClass(name) { function getFormattedMethodsExcludingRelations (line 331) | function getFormattedMethodsExcludingRelations(methods) { function getCreateMethod (line 343) | function getCreateMethod(methods) { function getFormattedScopeMethods (line 349) | function getFormattedScopeMethods(methods) { function getFormattedPrototypeMethods (line 361) | function getFormattedPrototypeMethods(methods) { FILE: test/replication.rest.test.js function listCars (line 79) | function listCars() { function createCar (line 83) | function createCar() { function setupModifiedLocalCopyOfAlice (line 402) | function setupModifiedLocalCopyOfAlice(done) { function setupServer (line 473) | function setupServer(done) { function setupClient (line 522) | function setupClient() { function createRemoteModelOpts (line 557) | function createRemoteModelOpts(modelOpts) { function seedServerData (line 568) | function seedServerData(done) { function seedClientData (line 620) | function seedClientData(done) { function seedConflict (line 640) | function seedConflict(done) { function setAccessToken (line 665) | function setAccessToken(token) { function expectHttpError (line 672) | function expectHttpError(code, done) { function replicateServerToLocal (line 682) | function replicateServerToLocal(next) { function conflictError (line 692) | function conflictError(conflicts) { function carToString (line 698) | function carToString(c) { FILE: test/replication.test.js function mockRectifyAllChanges (line 127) | function mockRectifyAllChanges(Model) { function mockSourceModelRectify (line 238) | function mockSourceModelRectify() { function mockTargetModelRectify (line 254) | function mockTargetModelRectify() { function bumpSourceCheckpoint (line 550) | function bumpSourceCheckpoint(cb) { function bumpTargetCheckpoint (line 560) | function bumpTargetCheckpoint(cb) { function createConflict (line 781) | function createConflict(err, conflicts) { function createConflict (line 859) | function createConflict() { function createConflict (line 936) | function createConflict() { function createConflict (line 1012) | function createConflict() { function givenReplicatedInstance (line 1196) | function givenReplicatedInstance(cb) { function assertChangeRecordedForId (line 1208) | function assertChangeRecordedForId(id, cb) { function testUpdateConflictIsResolved (line 1477) | function testUpdateConflictIsResolved(resolver, cb) { function testDeleteConflictIsResolved (line 1512) | function testDeleteConflictIsResolved(resolver, cb) { function updateClientB (line 1550) | function updateClientB(name) { function sync (line 1561) | function sync(client, server) { function updateSourceInstanceNameTo (line 1573) | function updateSourceInstanceNameTo(value) { function deleteSourceInstance (line 1581) | function deleteSourceInstance(value) { function verifySourceWasReplicated (line 1592) | function verifySourceWasReplicated(target) { function mockBulkUpdate (line 1791) | function mockBulkUpdate(modelToMock) { function replicate (line 1805) | function replicate(source, target, since, next) { function createModel (line 1832) | function createModel(Model, data) { function replicateExpectingSuccess (line 1838) | function replicateExpectingSuccess(source, target, since) { function setupRaceConditionInReplication (line 1856) | function setupRaceConditionInReplication(fn) { function verifyInstanceWasReplicated (line 1873) | function verifyInstanceWasReplicated(source, target, id) { function spyAndStoreSinceArg (line 1891) | function spyAndStoreSinceArg(Model, methodName, store) { function getPropValue (line 1899) | function getPropValue(obj, name) { function getIds (line 1905) | function getIds(list) { function assertTargetModelEqualsSourceModel (line 1909) | function assertTargetModelEqualsSourceModel(conflicts, sourceModel, function givenSomeSourceModelInstances (line 2050) | function givenSomeSourceModelInstances(done) { function mockChangeFind (line 2059) | function mockChangeFind(Model) { FILE: test/rest.middleware.test.js function givenUserModelWithAuth (line 263) | function givenUserModelWithAuth() { function givenLoggedInUser (line 283) | function givenLoggedInUser(cb, done) { function getFixturePath (line 295) | function getFixturePath(dirName) { FILE: test/role-mapping.test.js function setupModel (line 41) | function setupModel(modelName) { FILE: test/role.test.js function checkResult (line 15) | function checkResult(err, result) { function givenUsers (line 763) | function givenUsers() { function isOwnerForMessage (line 773) | function isOwnerForMessage(user, msg) { function givenModelWithSenderReceiverRelations (line 790) | function givenModelWithSenderReceiverRelations(name, options) { FILE: test/user-password.test.js function givenAppWithRestrictionEnabled (line 63) | function givenAppWithRestrictionEnabled() { function givenAppWithRejectionEnabled (line 95) | function givenAppWithRejectionEnabled() { function givenAppWithNoRestrictions (line 149) | function givenAppWithNoRestrictions() { function givenAppWithUser (line 157) | function givenAppWithUser(userSettings) { function givenRegularAccessToken (line 202) | function givenRegularAccessToken() { function givenResetPasswordToken (line 206) | function givenResetPasswordToken() { function changeName (line 214) | function changeName(token) { function patchPassword (line 220) | function patchPassword(token) { function changePassword (line 226) | function changePassword(token) { function resetPassword (line 232) | function resetPassword(token) { function patchNameAndPasswordDirectly (line 238) | function patchNameAndPasswordDirectly() { FILE: test/user.integration.js constant SIMPLE_APP (line 10) | const SIMPLE_APP = path.join(__dirname, 'fixtures', 'user-integration-ap... function triggerPasswordReset (line 343) | function triggerPasswordReset(email) { FILE: test/user.test.js function assertGoodToken (line 952) | function assertGoodToken(accessToken, user) { function login (line 1292) | function login(fn) { function logout (line 1296) | function logout(err, accessToken) { function login (line 1305) | function login(fn) { function logout (line 1309) | function logout(err, accessToken) { function login (line 1320) | function login(fn) { function logout (line 1336) | function logout(err, token) { function verify (line 1361) | function verify(token, done) { function saveObservedOptionsForHook (line 1543) | function saveObservedOptionsForHook(name) { function givenUserIdAndPassword (line 1551) | function givenUserIdAndPassword() { function saveObservedOptionsForHook (line 1631) | function saveObservedOptionsForHook(name) { function givenUserId (line 1639) | function givenUserId() { function givenUser (line 2234) | function givenUser() { function testConfirm (line 2263) | function testConfirm(testFunc, done) { function saveObservedOptionsForHook (line 2945) | function saveObservedOptionsForHook(name, model) { function assertPreservedTokens (line 3024) | function assertPreservedTokens(done) { function assertNoAccessTokens (line 3036) | function assertNoAccessTokens(done) { function createOriginalUser (line 3117) | function createOriginalUser(done) { function triggerPasswordReset (line 3190) | function triggerPasswordReset(email) { FILE: test/util/model-tests.js constant ACL (line 11) | const ACL = loopback.ACL; FILE: test/utils.test.js function processFunction (line 64) | function processFunction(filter, cb) {