Implement RBAC (only built in roles) (#15212)

* Install bouncer

* Seeder and level migration

* Display and edit roles

* remove unused deluser page

* Update Radius and SSO to assign roles

* update AlertUtil direct level check to use roles instead

* rewrite ircbot auth handling

* Remove legacy auth getUserlist and getUserlevel methods, add getRoles
Set roles in LegacyUserProvider

* Small cleanups

* centralize role sync code
show roles on user preferences page

* VueSelect component WIP and a little docs

* WIP

* SelectControllers id and text fields.

* LibrenmsSelect component extracted from SettingSelectDynamic

* Handle multiple selections

* allow type coercion

* full width settings

* final style adjustments

* Final compiled assets update

* Style fixes

* Fix SSO tests

* Lint cleanups

* small style fix

* don't use json yet

* Update baseline for usptream package issues

* Change schema, not 100% sure it is correct
not sure why xor doesn't work
This commit is contained in:
Tony Murray
2023-08-28 00:13:40 -05:00
committed by GitHub
parent 4fc27d98e9
commit 2cd207028a
58 changed files with 1344 additions and 804 deletions

View File

@@ -30,6 +30,7 @@ return [
'general' => ['name' => 'General Authentication Settings'],
'ad' => ['name' => 'Active Directory Settings'],
'ldap' => ['name' => 'LDAP Settings'],
'radius' => ['name' => 'Radius Settings'],
'socialite' => ['name' => 'Socialite Settings'],
],
'authorization' => [
@@ -1259,6 +1260,12 @@ return [
'help' => 'Networks/IPs which will not be discovered automatically. Excludes also IPs from Autodiscovery Networks',
],
],
'radius' => [
'default_roles' => [
'description' => 'Default user roles',
'help' => 'Sets the roles that will be assigned to the user unless Radius sends attributes that specify role(s)',
],
],
'reporting' => [
'error' => [
'description' => 'Send Error Reports',