netbird/management/server/http/middleware
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
..
access_control.go add owner role support (#1340) 2023-12-01 17:24:57 +01:00
auth_middleware_test.go Enable JWT group-based user authorization (#1368) 2023-12-11 18:59:15 +03:00
auth_middleware.go Enable JWT group-based user authorization (#1368) 2023-12-11 18:59:15 +03:00