Coder Social home page Coder Social logo

Comments (6)

kaplun avatar kaplun commented on June 29, 2024

cc: @inveniosoftware/triagers

from invenio-access.

kaplun avatar kaplun commented on June 29, 2024

This is sort of feature, since it's documented:
https://pythonhosted.org/invenio-access/usage.html#action-needs
[...]
If no role or user is attached anybody can perform the action. You can verify this behavior using following commands.
[...]

Implying that consequently, if a user or role is attached then nobody but the user or role can perform the action.

However as @jacquerie notes, in the normal context of a webserver, and digital library, it's a standard to have an admin user, which should not imply that any other user is then forbidden to perform the given action.

That said: what about changing the default behavior for certain actions? (This was actually the case on Invenio1, where out-of-the-box we were shipping default sensible authorizations with either allow any or deny all modes). Alternatively what is the easy recipe to authorize by default all guests users to perform a certain action?

from invenio-access.

david-caro avatar david-caro commented on June 29, 2024

Hmm, maybe there should be a default 'public' action/role registered for some of the actions (like viewing a record).

from invenio-access.

jirikuncar avatar jirikuncar commented on June 29, 2024

You can allow certain action to all users (sadly not available via CLI yet).

from invenio-access.

jirikuncar avatar jirikuncar commented on June 29, 2024

FYI I am about to start working on improving the cli. Please see comments in #73.

from invenio-access.

jirikuncar avatar jirikuncar commented on June 29, 2024

Since #73 has been merged one can explicitly grant access for anybody:

$ flask access allow <ACTION> any

from invenio-access.

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.