-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User auth/Role-based Access Control #146
Comments
Hi Hojat! |
Hi Ricardo, |
Thanks for the kind words Hojat, updates will sure come soon! |
Hello Ricardo, Is it possible to share me the admin password of your demo server http://150.230.171.172/ ? Actually I would like to see about detail how data configured for each specific points. |
This demo is a pretty old version. |
Hi Ricardo, Yes the problem was based on socket port number of postgresql in installation. It is work now, but Replyy dose not work for before time of now < 3hours. My mean is that If I change the ruler to the 1 hour before it jumped to last, but if I click on more than 3 hour before it replay data on that time. |
I have found a missing package problem in the installer script on Rocky Linux. It is now fixed. |
Items 2, 3 and 5 are solved in recent commit. |
Hi, the display contents are limited it is OK, but the list of choose screen should be based on limited access to items "Can Access - Display List" on user role. I think the the file "svg/screen_list.js" should be updated. |
For item 3, if a user click on "Erase All Event F2" so all event on the system that do not have access on them also will be erased. It is problem, could you check. |
Above problem resolved after checking the last commit Now Item 1 and 4 remained |
About Item 4, I think BEEP_POINTKEY should move to "users" database scheme, what you think? |
I think we should preserve the global beep for the server to generate sound and a user beep that only sounds for the current user in the Alarms Viewer. It will require some work. Will check. |
The Alarm Beep should be based on the same user on each browser and for each user based on his access to the Group1 as like as what is in the event list or alarm list now. In other words, beep activation/deactivation and beep alarm generation must be done separately for each user. For example, in Group name SS1, which user name "user1" has access to, if an alarm appears, only "user1" will hear the beep on his browser, and if he disables it, it will be disabled on all browsers that "user1" has opened, and this issue It does not happen to "user2" who does not have access to Group name SS1. So the beep alarm and its activation and deactivation should be based on the logged-in user and based on their access list. |
Ok, now alarm beep on browser will follow user rights to group1 list. |
The Bell sign now appears on screen of each user space alarm, great work!
|
Sure, that fixed it. |
I see just Item1 is remained, did you check the suggestion #146 (comment) ? |
Ok. The list will be built by allowed displays when restricted. Otherwise will load from screen_list.js file. |
In src/htdocs-login/login.html there is a bug for display after your fix for bellow:
Please check about that, actually I changed that to bellow with the empty screen image:
Then change the screen_list.js as bellow:
What is your opinion? |
I changed it to not open any default display. |
Hi, in the Admin form if a in User Role we have a enabled "Change Password", if user login with this privileged; there is no place that able to change its own password. To change the its own password, need to enter previous password with two repeated new password. |
Hi! You're right, this seems to be a small issue with the Admin/Server_realtime_auth system. There’s definitely room for refactoring here. For example, the system could have automatic redirection on certain events (e.g., when the JWT token expires, instead of showing a JSON message). The admin frontend could also benefit from some UX improvements for forms, user validation, and visual feedback (e.g., loading indicators, user responses). Another concern is the lack of a check for duplicate users when an admin creates an account, which could lead to two accounts sharing the same username and cause problems. There's also the limitation where an admin cannot update other admin roles/users, which might be better addressed by allowing admins to modify admin users/permissions, or perhaps creating a super admin role with full permissions. Instead of flooding this issue with everything, we could create separate issues for each of these problems. As for the admin UI and server_realtime/_auth improvements, I can suggest some features to help @riclolsen lighten the load. Let me know what you think! Best, |
Now the user can change its own password in the login form (after signin). |
The database has a restriction to avoid duplication of user accounts (same username). |
It seems, it is forgot to add the Invoke/auth/changePassword into server_realtime_auth\app\routes\auth.routes.js
|
Hi, I see that the user access control dose not work properly on bellow cases:
Anyway I tested bellow modification and it is work OK for items 2, 5 above but this do not affect on other items of above
The text was updated successfully, but these errors were encountered: