2amigos / yii2-usuario

Highly customizable and extensible user management, authentication, and authorization Yii2 extension
https://github.com/2amigos/yii2-usuario
Other
294 stars 142 forks source link

Usuario 2.0.0 #323

Open tonydspaniard opened 5 years ago

tonydspaniard commented 5 years ago

I am planning to make a major refactor to the module so to make the library more manageable and scalable.

This is what is being planned:

Once the above is done, I will start to create a new usuario for Yii 3 by:

If you would like to see anything else not noted above, please let me know on this thread.

schmunk42 commented 5 years ago
tonydspaniard commented 5 years ago

@schmunk42 LDAP could be a simple override for SecurityController (need to review @maxxer work on this, he already did it on a personal repository). For OAuth2, I think is more when provided API support (RestControllers) which I think could be delegated to an external package (i.e. yii-usuario-rest)

Edit:

About RBAC, could you wireframe that with a simple drawing with pen and paper? That would help.

I also think that some of the actions on usuario are only performed by developers and not end-users. RBAC should be working differently to the way it is now, I believe it should work like the yii2-debug bar does. Only showing when working on development/configurable mode. Users should only be allowed to assign roles and its permissions, not working with permissions or rules directly as that is part of the developers to do. Need to think a way where both worlds combine somehow. If working with permissions is allowed, then the UI should provide the different actions within the system so he can assign them and then Controllers should retrieve them dynamically for its filter. Not the way it is now.

bscheshirwork commented 5 years ago

RBAC could be enhanced with a tree or node view for auth-items or at least showing parent items

If we wish see a graph we can use githubjeka/yii2-gui-rbac (or find some another fresh repo like this. I will redefine it for new jquery approx a 1-2 year ago)

demonking commented 5 years ago

@tonydspaniard can we somehow support you for the Version 2?

I'm missing the line, where we could start

tonydspaniard commented 5 years ago

@demonking all the checklist points are above. I was currently refactoring the library in a way where I could split the different packages (Work with current library repository but split its functionality in different independent extensions: gpdr, rbac, 2fa, social login, recaptcha, console.)

The branch I am working on is usuario-2.0-dev. Nevertheless, I think I need to do the refactor my self until is on a structure where you guys could jump in.