Giter VIP home page Giter VIP logo

Comments (3)

goloroden avatar goloroden commented on July 18, 2024 1

Hi @smiccoli πŸ‘‹

Thanks for bringing up this issue, and for your interest in wolkenkit – and of course, thanks as well for the nice words and the great feedback 😊

Your description of how authorization works in 3.x and 4.0 is correct, and it's also correct that the 4.0 version is way more flexible. Actually, since we are almost done with 4.0, I would not recommend to start developing with 3.x any more.

Anyway, taking 3.x as granted for the moment, the suggested solution would be to store things such as groups, roles, … in the identity provider, so that you get it as part of the user's token, and then check for the appropriate claims in the command handler.

This works, as long as you do not need dynamically set up groups at runtime (but talking about junior and senior editors, this seems to be pretty stable).

Does this help? (If not, please reach out to me via email to golo [dot] roden [at] thenativeweb [dot] io).

Have a nice day,

Golo

from wolkenkit.

smiccoli avatar smiccoli commented on July 18, 2024

Indeed it clarifies a lot, as the user token was already including the user's groups and the solution in command handler looks quite simple.

Thanks a lot!

from wolkenkit.

goloroden avatar goloroden commented on July 18, 2024

Glad I could help 😊

from wolkenkit.

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.