Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sails-permissions

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-permissions

Comprehensive sails.js user permission/privilege framework that allows granting and restricting access to models and attributes based on object ownership and relationships with other users and roles

  • 0.10.19
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39
decreased by-65.49%
Maintainers
1
Weekly downloads
 
Created
Source

-permissions

NPM version Build status Dependency Status

Install

$ npm install sails-auth sails-permissions --save

Usage

1. run generator

$ sails generate auth-api
$ sails generate permissions-api

2. Set environment variables

variabledescription
ADMIN_EMAILadmin user email address
ADMIN_PASSWORDadmin user password

2. update configs

.sailsrc
{
  "generators": {
    "permissions-api": "sails-permissions",
    "auth-api": "sails-auth"
  }
}
config/policies.js
  '*': [ 'passport', 'sessionAuth', 'ModelPolicy', 'OwnerPolicy', 'AuthorizationPolicy' ],

  AuthController: {
    '*': true
  }

Currently, sails-permissions does not validated the permissions of associations. Until this is implemented, ensure that sails.config.blueprints.populate is set to false.

License

MIT

Keywords

FAQs

Package last updated on 11 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc