Note: For comprehensive user account control with role-based permissioning, object ownership, and row-level security, see sails-permissions, which uses this project as a dependency.
$ npm install sails-auth --save
This will install
sails-auth as a Sails Hook. The Hook uses
marlinspike to inject the relevant
Controllers, Policies, etc into your Sails application.
By default, the
basic strategies are enabled. See
for examples of how to add and configure additional authentication strategies.
bcrypt:/*** Specifiy number of salt rounds to perform on password. Values >10 are* slow.*/rounds: 8
Create users as you normally would (
/user). Authenticate using the
endpoint of the provider you've chosen.
User for this authenticated session.