Reputation: 31
How can I integrate the way of doing policies in SailsJs into a basic expressJs project?
The way of doing policies in SailsJs
Upvotes: 0
Views: 1222
Reputation: 659
I'd read about middleware The way of doing middleware in Express and passport.js passport.js
You need to intercept the request using middleware, get the credentials, validate them, then either move the request on to be fullfilled, or reject with a 401 unauthorised.
Upvotes: 1