netbird/management/server/http
Bethuel Mmbaga cba3c549e9
Add JWT group-based access control for adding new peers (#1383)
* Added function to check user access by JWT groups in the account management mock server and account manager

* Refactor auth middleware for group-based JWT access control

* Add group-based JWT access control on adding new peer with JWT

* Remove mapping error as the token validation error is already present in grpc error codes

* use GetAccountFromToken to prevent single mode issues

* handle foreground login message

---------

Co-authored-by: Maycon Santos <mlsmaycon@gmail.com>
2023-12-13 13:18:35 +03:00
..
api Enable JWT group-based user authorization (#1368) 2023-12-11 18:59:15 +03:00
middleware Add JWT group-based access control for adding new peers (#1383) 2023-12-13 13:18:35 +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 Add JWT group-based access control for adding new peers (#1383) 2023-12-13 13:18:35 +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