Commit Graph

42 Commits (4657feaf6ed3938c277ea90d4e78314b51ac3d5c)

Author SHA1 Message Date
iglocska 4657feaf6e
fix: [keycloak] user enrollment now syncs permissions correctly 2024-04-09 12:42:43 +02:00
iglocska 91be9ddeda
fix: [keycloak] sync metafields on user creation 2024-04-09 12:21:24 +02:00
iglocska 16a4a1cde5
new: [org Groups] added
- Org Groups allow user co-management of sub communities
  - Create an org group with a set of organisations
  - assign administrators to an org group
  - org group admins can modify users of the group
2023-09-12 09:26:07 +02:00
iglocska 41749ae5a8
fix: [users] added the country information to the index / view 2023-05-25 16:22:49 +02:00
Sami Mokaddem a427686388
chg: [user:permissionRestriction] Move check from beforeSave to ApplicationRule 2023-02-24 15:02:08 +01:00
iglocska e0f92aa8e0
fix: [validation] Tightened the validation rules for users to avoid 500 errors when the requirements are not met
- ensure that username is unique
- (optional) ensure that individual->user assignment is unique
- (optional) ensure that usernames are e-mail addresses

- As reported by Matúš Mikuláš, Adam Gajdošík, Milan Pikula of SK-CERT
2023-01-03 15:03:06 +01:00
iglocska 256bfa8702
fix: [users] handle saving of a user without KC 2022-12-16 15:32:29 +01:00
Sami Mokaddem af622dd19b
new: [users:view] Added keycloak status showing the potential differences between Cerebrate and Keycloak 2022-12-09 11:54:34 +01:00
Sami Mokaddem b121399304
fix: [user:checkPermissionRestriction] Refactor the function to support more edge-cases 2022-12-08 15:39:28 +01:00
Sami Mokaddem f3ee43ed46
chg: [user:NotifyAdminBehavior] Track modification on meta_fields 2022-12-08 10:24:09 +01:00
Sami Mokaddem c61c16c83c
fix: [user:beforeSave] Make sure variable is initialized 2022-12-08 10:19:28 +01:00
Sami Mokaddem efe96d85c4
Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop 2022-11-14 09:08:44 +01:00
iglocska 5c02f1c6a4
chg: [cleanup] of the default role setting for keycloak
- not used in any sensible way anymore
2022-11-13 11:18:54 +01:00
iglocska b1f09dc97e
new: [permission limitations] subsystem added
- add limitations for users with given meta fields
  - x number / org and y number / globally
- add comments to the limitations
- enforced on user creation/modification
2022-11-09 14:09:27 +01:00
iglocska 8dbbb21dff
chg: [users] add metafields behaviour 2022-10-31 13:38:31 +01:00
Sami Mokaddem d0119b2dba
new: [user] Added `notifyAdmin` behavior 2022-10-27 10:14:09 +02:00
iglocska 84537c52f9
new: [user enrollment] send keycloak welcome email to users when enrolled 2022-10-25 10:57:18 +02:00
Sami Mokaddem a091edbf22
fix: [user:beforeSave] Only call the user-update callback if the user is not new 2022-10-21 09:00:49 +02:00
Sami Mokaddem 21403995e3
new: [user:edit] Added keycloak updates when a user gets modified 2022-09-21 10:11:09 +02:00
Sami Mokaddem 37094e0abb
fix: [user:validation] Allow user edition when `username` is not set 2022-09-21 10:10:02 +02:00
iglocska 5e0ab5cc38
new: [users] username validation added
- >5 && <50 in length required
- trim username to test to avoid whitespace names

- as reported by SK-CERT
2022-09-19 01:22:53 +02:00
iglocska 9a50a5693e
fix: [users] added uniqueness to usernames
- added upgrade script with removal of duplicate usernames
- added unique index to username field
- massaging the usernames before insertion (trim + lowercasing)

- As reported by SK-CERT
2022-09-19 01:12:14 +02:00
iglocska 033f6d7f97
fix: [typo] organisations != oganisations 2021-11-25 00:02:16 +01:00
iglocska c2cefb4311
fix: [user init] generation fixed 2021-11-24 23:59:34 +01:00
iglocska c7768921fb
fix: [user init] explicit uuid creation removed
- added behavior wherever it was missing
2021-11-24 23:32:17 +01:00
iglocska 716f6b1147
fix: [default user creation] explicitly create UUIDs 2021-11-24 23:24:04 +01:00
iglocska eb0a67327a
fix: [initial user] generation fixed
- requires a default organisation + org link now
2021-11-24 14:46:34 +01:00
iglocska e5e4e74cae
chg: [users] associated with orgs 2021-11-24 01:25:32 +01:00
iglocska 2e1ee2d064
new: [audit log] behaviour tied into the appropriate models 2021-11-17 15:43:52 +01:00
Sami Mokaddem 39f7a3f9e1
fix: [user] Added support of timestamp behavior 2021-10-21 11:33:41 +02:00
Sami Mokaddem 39fdb8ec0d
new: [user-settings] Added user settings feature 2021-10-08 10:27:40 +02:00
iglocska f60e411af1
new [keycloak]: WiP user enrollment added
- also moved the keycloak specific functionalities to a behaviour
- added new role permission (org admin)
2021-10-01 13:19:26 +02:00
iglocska efe3765609
new: [keycloak auth] wip version 1 added
- authenticate via keycloak (on demand only at the moment)
- check if user from JWT token exists
  - if yes:
    - check if role needs to be updated - do so if need be
    - check if organisation needs to be updated - (currently only captures, not aligned yet!)
  - if no:
    - create user
    - set role (if set, otherwise fall back to default configuration)
    - capture organisation - (currently not aligned yet!)
2021-09-24 01:48:50 +02:00
mokaddem b93dd49232 chg: [component:CRUD] Remove usage of custom header + added custom form
validation feedback
2021-01-12 10:16:58 +01:00
iglocska 9e05e667ec
fix: [password validation] don't accept linebreaks
- as reported by cert.sk
2020-11-20 11:16:57 +01:00
iglocska df02343448
fix: [passwords] several fixes
- complexity requirements added
- validation rules added
- added confirm password rules

- as reported by cert.pl
2020-11-06 10:07:25 +01:00
iglocska 0fbec5374c
fix: [default user] Added default first/lastname 2020-06-22 17:54:19 +02:00
iglocska e26c0d0958
fix: [typo] pluralise model name 2020-06-22 17:52:11 +02:00
iglocska 6f9a9ca236
fix: [internal] Correct way of fetching the ID of the new entity 2020-06-22 17:50:10 +02:00
iglocska e5e7feff35
fix: [import] of table registry added to users table 2020-06-22 17:47:11 +02:00
iglocska 0c6e88cdee
new: [init] added functions to create a default user 2020-06-22 17:45:00 +02:00
iglocska 44c60942c0
chg: [restructure] the application
- move the app dir's contents to the source
- update composer for easier installation
2020-06-22 14:28:17 +02:00