netbird/management/server/http/middleware
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
..
access_control.go add owner role support (#1340) 2023-12-01 17:24:57 +01:00
auth_middleware_test.go Add JWT group-based access control for adding new peers (#1383) 2023-12-13 13:18:35 +03:00
auth_middleware.go Add JWT group-based access control for adding new peers (#1383) 2023-12-13 13:18:35 +03:00