Comments (4)
https://github.com/jedireza/aqua/ did a pretty good job. but it's design is not as extensible as ooth.
from ooth.
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.
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.
- https://github.com/jedireza/aqua/wiki/Users,-Roles-&-Groups
- https://auth0.com/rules/roles-creation
- https://github.com/plataformatec/devise
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.
Hey @caoer I was inspired and created a pretty simple roles plugin, here's how to use it:
- server side: https://github.com/nmaro/ooth/wiki#managing-user-roles
- client side: https://github.com/nmaro/ooth/wiki#managing-user-roles-1
Let me know if that helps you.
from ooth.
Related Issues (20)
- This is not defined. It's defined above in another scope. I can do a pull request if you want me to... HOT 1
- Typescript HOT 3
- ooth-local-emailer url parameter HOT 1
- local-plugin: remember me HOT 3
- TypeError: Ooth is not a constructor HOT 4
- Accessing users' roles through withUser HOC HOT 1
- how to get ooth integrated and deployed in a kubernetes cluster? HOT 6
- prisma backend? HOT 2
- [Backend] Prisma Integration as alternative to mongodb HOT 10
- Passworless login using Twillio HOT 1
- Enhance ooth Documentation
- React Native error "Canβt Find Variable Self" when import { OothClient } from 'ooth-client' HOT 1
- Capcha strategy
- TypeError: ooth.usesSession is not a function
- User serialization / deserialization
- Profile on registration HOT 1
- Ooth Client headers
- oothJwt and reset password
- Is this project still maintained? HOT 1
- Wildcard Sessions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ooth.