-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
eg:
npm run-script generate twitter-bootstrap
npm run-script generate html5bp
and more complex stuff like:
npm run-script generate auth-passport
-> creates /app/middleware/authentication.js (providing user middlewhere like .must_be_user())
-> creates /app/lib/authentication.js (configuration for auth mechanisms)
-> outputs:
you should add
var authentication = require('./lib/authentication')
to app/index.js and then add authentication to your app's 'init' array.
Then, you should use the methods in middleware/authentication wherever you would like to authenticate your controller actions. For example:
app.post('/messages', app.middleware.authentication.must_be_user, app.controllers.message.create);
Metadata
Metadata
Assignees
Labels
No labels