Coder Social home page Coder Social logo

Comments (3)

tjwebb avatar tjwebb commented on July 16, 2024

sails-permissions includes sails-auth as a dependency mainly because it relies on the User model. You'll see in the setup instructions that the first step is running sails generate auth-api; in your case, you could probably just skip this step. In config/policies, you'd replace 'passport', 'sessionAuth' with your own. The sails-permissions policies expect to see req.user, but I think that's it.

from sails-permissions.

tjwebb avatar tjwebb commented on July 16, 2024

In terms of the project's status, it currently is working for owner-only permissions. That is, an owner of an object automatically has full permissions for objects he/she creates, and other users cannot access objects they did not create. (I've implemented it in https://github.com/hashware/api and am basically UAT-ing it currently). This is fine for simple user account management, but obviously is not yet suitable for any case where you'd want users being able to share objects. I'll use the suggestions here (balderdashy/sails#2387) to implement that feature, which requires that I inspect objects after they are queried, but before they are returned to the client, in order to verify transitive role-level permissions.

from sails-permissions.

arryon avatar arryon commented on July 16, 2024

Ok, this answers the question nicely, thank you. Will spend some time trying to integrate it all.

from sails-permissions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.