Mohammed Belmehdi
Mohammed Belmehdi

Reputation: 31

Policies auth on expressJS

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

Answers (1)

dandanknight
dandanknight

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

Related Questions