Code Monkey home page Code Monkey logo

Comments (4)

caoer avatar caoer commented on July 18, 2024

https://github.com/jedireza/aqua/ did a pretty good job. but it's design is not as extensible as ooth.

from ooth.

nickredmark avatar nickredmark commented on July 18, 2024

In principle, why not? The core of ooth is the management of user identity. At the beginning I conceived identity narrowly, as the thing that allows you to authenticate, and things such as profile data (like first and last name) or roles (like "admin") aren't useful for authentication (though roles would be useful for authorization). But now I'm starting to take user identity more generally.
The problem with the more general user identity approach is that that info becomes very application-specific (who gets to be an admin? who gets to define user roles?). Any plugin that provides endpoints to define user roles would require you to define those things anyway. How would you imagine such a role plugin should work?

from ooth.

caoer avatar caoer commented on July 18, 2024

I haven't try ooth yet, just think about it and there isn't an integrated good framework for user identity, like what ruby have, devise, and others.
recommend following two places to read.
auth0 seems did a very good job on authorization in a commercial sense.

In this topic, I would image that there is one special account, who is owner/agent. it can have the power to give/assign to others.

or the plugin may just expose the API to let developer decided what to do with it.

from ooth.

nickredmark avatar nickredmark commented on July 18, 2024

Hey @caoer I was inspired and created a pretty simple roles plugin, here's how to use it:

Let me know if that helps you.

from ooth.

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.