Modify `app.enableAuth` to automaticaly setup all required models that are not attached to the app nor a datasource. Users wishing to use this option must provide the name of the data-source to use for these models. Example usage: var app = loopback(); app.dataSource('db', { connector: 'memory' }); app.enableAuth({ dataSource: 'db' }); app.use(loopback.rest()); app.listen(3000); |
||
---|---|---|
.. | ||
connectors | ||
access-context.js | ||
application.js | ||
browser-express.js | ||
builtin-models.js | ||
express-middleware.js | ||
loopback.js | ||
model.js | ||
persisted-model.js | ||
registry.js | ||
runtime.js | ||
server-app.js |