Open slavafomin opened 9 years ago
There is more information in the wiki than on the readme. Here are some answers, anyway:
'*': [ 'basicAuth', 'passport', 'sessionAuth' ],
AuthController: {
'*': [ 'passport' ]
}
The policies above secure everything by default, including registration. In case you wish to open it, add the following:
UserController: {
'create': true
}
Hello!
I'm trying to use
sails-auth
in one of my projects and I want to use onlylocal
strategy. I've tried to figure it out manually, but failed to do so without any proper documentation.I have the following questions:
local
strategy? I don't want to leave any loopholes./auth/local
route, but I can't figure out the correct parameters. I also want to return JSON document with user credentials on success.policies.js
should look?This module really needs some overall description at least. It's hard to figure out how all this components are working together.
Thank you!