netbird/management/server/http
Bethuel Mmbaga d275d411aa
Enable JWT group-based user authorization (#1368)
* Extend management API to support list of allowed JWT groups (#1366)

* Add JWTAllowGroups settings to account management

* Return an empty group list if jwt allow groups is not set

* Add JwtAllowGroups to account settings in handler test

* Add JWT group-based user authorization (#1373)

* Add JWTAllowGroups settings to account management

* Return an empty group list if jwt allow groups is not set

* Add JwtAllowGroups to account settings in handler test

* Implement user access validation authentication based on JWT groups

* Remove the slices package import due to compatibility issues with the gitHub workflow(s) Go version

* Refactor auth middleware and test for extracted claim handling

* Optimize JWT group check in auth middleware to cover nil and empty allowed groups
2023-12-11 18:59:15 +03:00
..
api Enable JWT group-based user authorization (#1368) 2023-12-11 18:59:15 +03:00
middleware Enable JWT group-based user authorization (#1368) 2023-12-11 18:59:15 +03:00
util fix some typo spotted with codespell (#1278) 2023-11-01 17:11:16 +01:00
accounts_handler_test.go Enable JWT group-based user authorization (#1368) 2023-12-11 18:59:15 +03:00
accounts_handler.go Enable JWT group-based user authorization (#1368) 2023-12-11 18:59:15 +03:00
dns_settings_handler_test.go Fix nil pointer exception in group delete (#1211) 2023-10-11 23:00:56 +02:00
dns_settings_handler.go changed the naming convention for all handling objects and methods to have unified way 2023-02-28 15:01:24 +01:00
events_handler_test.go Handle user delete (#1113) 2023-09-19 18:08:40 +02:00
events_handler.go Fix/user deletion (#1157) 2023-09-23 10:47:49 +02:00
groups_handler_test.go fix api references 2023-11-28 15:15:51 +01:00
groups_handler.go Extends management user and group structure (#1268) 2023-11-01 13:04:17 +03:00
handler.go Enable JWT group-based user authorization (#1368) 2023-12-11 18:59:15 +03:00
nameservers_handler_test.go Add search domains support (#1224) 2023-10-19 19:32:42 +02:00
nameservers_handler.go Add search domains support (#1224) 2023-10-19 19:32:42 +02:00
pat_handler_test.go Block user through HTTP API (#846) 2023-05-11 18:09:36 +02:00
pat_handler.go move validation into account manager + func for get requests 2023-03-30 13:58:44 +02:00
peers_handler_test.go Implement lightweight method to check is peer has update channel (#1351) 2023-12-05 14:17:56 +01:00
peers_handler.go Implement lightweight method to check is peer has update channel (#1351) 2023-12-05 14:17:56 +01:00
policies_handler_test.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
policies_handler.go Add gosec linter (#1342) 2023-12-04 13:34:06 +01:00
routes_handler_test.go fix api references 2023-11-28 15:15:51 +01:00
routes_handler.go Add peer groups support for network routes (#1150) 2023-09-28 14:32:36 +02:00
rules_handler_test.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
rules_handler.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
setupkeys_handler_test.go Extend linter rules (#1300) 2023-11-10 16:33:13 +01:00
setupkeys_handler.go Add gocritic linter (#1324) 2023-11-27 16:40:02 +01:00
users_handler_test.go Add non-deletable service user (#1311) 2023-11-15 18:22:00 +03:00
users_handler.go Add account deletion endpoint (#1331) 2023-11-28 14:23:38 +01:00