sails-permissions | Comprehensive user permissions and entitlements system | Authentication library

 by   trailsjs JavaScript Version: Current License: MIT

kandi X-RAY | sails-permissions Summary

kandi X-RAY | sails-permissions Summary

sails-permissions is a JavaScript library typically used in Security, Authentication applications. sails-permissions has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Comprehensive user permissions and entitlements system for sails.js and Waterline. Supports user authentication with passport.js, role-based permissioning, object ownership, and row-level security.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              sails-permissions has a low active ecosystem.
              It has 429 star(s) with 122 fork(s). There are 20 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 82 open issues and 91 have been closed. On average issues are closed in 25 days. There are 16 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of sails-permissions is current.

            kandi-Quality Quality

              sails-permissions has 0 bugs and 0 code smells.

            kandi-Security Security

              sails-permissions has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              sails-permissions code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              sails-permissions is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              sails-permissions releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed sails-permissions and discovered the below as its top functions. This is intended to give you an instant insight into sails-permissions implemented functionality, and help decide if they suit your requirements.
            • Creates the response policy
            • Bind the response policy
            • Parses the model from the request .
            Get all kandi verified functions for this library.

            sails-permissions Key Features

            No Key Features are available at this moment for sails-permissions.

            sails-permissions Examples and Code Snippets

            No Code Snippets are available at this moment for sails-permissions.

            Community Discussions

            QUESTION

            How do I implement row-level permissions using blueprint routes in SailsJS 1.x?
            Asked 2019-Nov-13 at 22:19

            I'm using Sails version 1.2.3 to build rest APIs. Our application requires row-level permissions for some entities. For example, for the same API, certain users/roles the rest API should return a subset of the data. For elevated users the rest API should return the full set of data.

            Instead of build custom routes/actions for our application, I'd like to use sails blueprint routes, and apply the necessary row-level permissions to the blueprint routes.

            I've tried reviewing the sails-auth and sails-permissions npm packages, but they don't work for sails 1.x.

            Is there a way to do this in the current version of SailsJS?

            Thanks!

            ...

            ANSWER

            Answered 2019-Nov-13 at 22:19

            I agree with @mansim. But still, if you want to do this you must override the find and findOne controllers as per requirement.

            Steps should be like as follows:

            1. Create a policy that will set a permission flag in the 'req' object.
            2. Read flag from 'req' in the findOne/find method.
            3. Use _.omit(or any javascript method) to remove the details which you don't want to send.

            Source https://stackoverflow.com/questions/58773836

            QUESTION

            Sails JS: user management - best practice 2018
            Asked 2018-Apr-24 at 08:18

            We are quite new to Sails JS.

            Using Sails JS (V 0.12.13) inside our company locally, we are now to the point of granting access to our customers. We would like to implement few layers of access (Global admin, global user, customer admin, and customer user (possibly others but not yet)). We would also like to manage customer pages individually (customer1.app.com, customer2.app.com...).

            Because we don't need social login, just local users, we've counted out Passport.

            Is the best practice to go with Sails policies and access control ? We found this in Sails documentation (https://sailsjs.com/documentation/concepts/policies/access-control-and-permissions) but as it is in the V 1. doc we don't know if we can use in with sails 0.12.13.

            Or would something like Sails-Permissions (https://github.com/trailsjs/sails-permissions) be more appropriate to manage users ?

            Also, from the Sails.JS in Action book, they use machine-packs to encrypt passwords and manage logins. Those package looks ratter old, so we are wondering if they are still "safe" to use in a 2018 app.

            ...

            ANSWER

            Answered 2018-Apr-24 at 08:18

            Sails policies are certainly a good practice, and you can use them in v0.12 v0.12 docs, yes I agree that machine-packs are pretty old, but you can use npm modules and wrap them in helpers, for encrypting passwords for example, you can use beforeCreate to encrypt the password before saving to the database.

            Source https://stackoverflow.com/questions/49990040

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install sails-permissions

            Note: Complete documentation available in the sails-permissions wiki: https://github.com/langateam/sails-permissions/wiki.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/trailsjs/sails-permissions.git

          • CLI

            gh repo clone trailsjs/sails-permissions

          • sshUrl

            git@github.com:trailsjs/sails-permissions.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Authentication Libraries

            supabase

            by supabase

            iosched

            by google

            monica

            by monicahq

            authelia

            by authelia

            hydra

            by ory

            Try Top Libraries by trailsjs

            trails

            by trailsjsJavaScript

            sails-auth

            by trailsjsJavaScript

            sails-swagger

            by trailsjsJavaScript

            trailpack-hapi

            by trailsjsJavaScript

            doc

            by trailsjsCSS