idurar-erp-crm
idurar-erp-crm copied to clipboard
User Authentication process
The objective of this feature is to enhance the existing user authentication process in our application. This includes implementing user registration, login, and logout functionalities with a primary focus on the backend. Additionally, we aim to incorporate user role-based permissions and ensure the seamless sharing of context with the controller.
Tasks:
-
User Registration: Create registration API endpoints. Implement validation for user registration data. Store user registration data securely in the database. (As default, the first user registration role will be as
admin
) -
User Login: Develop login API endpoints. Implement user authentication during login. Generate and manage user sessions.
-
User Logout: Create a logout API endpoint. Ensure proper session termination and security measures. Role-based Permissions:
-
Define user roles: Implement role-based authorization logic. Restrict access to certain functionalities based on user roles.
roles: ["admin", "staff"]
-
Sharing Context with Controller Design an effective mechanism for sharing user context with the controller. Ensure that the controller can access relevant user data as needed.
I'd like to work on this, can you assign me please? I'd like to know some additional info on this too
I am interested in working on this as well.
I want to work on this can you assign me please?
Can you provide more info on this?
@Ando22 @salahlalami There are some questions can you please provide context about them so that can start with the implementation:
- Do we have only 2 roles
admin and staff
- Can user creates custom roles of his choice
- Can admin create user with role admin also
- the set of permissions allowed in staff role are fixed? Or admin can edit that?
@salahlalami @Ando22 can you please provide more context about this
@Ando22 @salahlalami There are some questions can you please provide context about them so that can start with the implementation:
- Do we have only 2 roles
admin and staff
- Can user creates custom roles of his choice
- Can admin create user with role admin also
- the set of permissions allowed in staff role are fixed? Or admin can edit that?
- Yes there are only 2 roles as an initial
- In future yes, but right now, everytime admin create a user, the role will assigned defaultly as
staff
. (we will create a new issue for handling RBAC). create roles it should be for admin - Yes admin can create admin
- yes, it should be fixed as an initial feature
thanks, @Ando22 for providing this information, so means the number of roles and permissions assigned to roles should be dynamic (which means can be changed by the user)
i want to contribute this issue. now is this problems is solved ?
i also need to contribute to the following issue can you provide more details
you haven't provided any update about the problem can you please inform is the issue is still on or not