netbird/management/server/http/handler
Maycon Santos 0b8387bd2c
Group users of same private domain (#243)
* Added Domain Category field and fix store tests

* Add GetAccountByDomain method

* Add Domain Category to authorization claims

* Initial GetAccountWithAuthorizationClaims test cases

* Renamed Private Domain map and index it on saving account

* New Go build tags

* Added NewRegularUser function

* Updated restore to account for primary domain account

Also, added another test case

* Added grouping user of private domains

Also added auxiliary methods for update metadata and domain attributes

* Update http handles get account method and tests

* Fix lint and document another case

* Removed unnecessary log

* Move use cases to method and add flow comments

* Split the new user and existing logic from GetAccountWithAuthorizationClaims

* Review: minor corrections

Co-authored-by: braginini <bangvalo@gmail.com>
2022-03-01 15:22:18 +01:00
..
peers_test.go Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
peers.go Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
setupkeys.go Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
util.go Jwtclaims package (#242) 2022-02-23 20:02:02 +01:00