Coder Social home page Coder Social logo

Add different backend roles about fusio HOT 4 CLOSED

apioo avatar apioo commented on May 15, 2024
Add different backend roles

from fusio.

Comments (4)

chriskapp avatar chriskapp commented on May 15, 2024

With the 0.9.2 release we have created a UserContext which is passed to every service so it would be easy to write a right check. But this would be an all or nothing right check it would be not possible to allow only specifc records. Also we would need to have a right panel where a admin can configure the rights of each user.

from fusio.

chriskapp avatar chriskapp commented on May 15, 2024

We should create a new table fusio_user_rights which has the columns resource, resource_id, view, create, update, delete. Through this we could set global rights if the resource_id is NULL or specific rights if we set a concrete id. The resource column basically is a string which represents a concrete resource. For the backend we could create resources like: action, routes, schema, etc.

from fusio.

EvoPulseGaming avatar EvoPulseGaming commented on May 15, 2024

Should cross reference the idea of having child users of a parent user. with inherited scopes....

As creating multiple installations was one of my own possible solutions (still went with managing my own copy of the user database)

from fusio.

chriskapp avatar chriskapp commented on May 15, 2024

The next release will include specific scopes for the backend i.e.:
image
Through this it will be possible to allow a user only specific rights to the backend. Through this it is possible to create different roles by allowing specific scopes for a user. Also if a user has i.e. the backend scope he automatically has access to all backend.* sub scopes.

from fusio.

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.