netbird/management/server
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
..
http Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
idp Test mgmt http handler (#240) 2022-02-22 18:18:05 +01:00
jwtclaims Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
migration Refactor: support multiple users under the same account (#170) 2021-12-27 13:17:15 +01:00
mock_server Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
testdata Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
account_test.go Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
account.go Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
config.go Link account id with the external user store (#184) 2022-01-24 11:21:30 +01:00
file_store_test.go Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
file_store.go Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
grpcserver.go Extracted AccountManager to interface (#230) 2022-02-22 11:28:19 +01:00
management_proto_test.go Fix unstable parallel tests (#202) 2022-01-25 09:40:28 +01:00
management_suite_test.go Move management server to a separate directory (#67) 2021-07-24 16:14:29 +02:00
management_test.go Link account id with the external user store (#184) 2022-01-24 11:21:30 +01:00
network.go Change Management Sync protocol to support incremental (serial) network changes (#191) 2022-01-16 17:10:36 +01:00
peer_test.go Store domain information (#217) 2022-02-11 17:18:18 +01:00
peer.go Extracted AccountManager to interface (#230) 2022-02-22 11:28:19 +01:00
setupkey_test.go feature: add update setup key endpoint 2021-08-20 22:33:43 +02:00
setupkey.go fix: minor HTTP bugs 2021-08-25 14:16:17 +02:00
store.go Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00
turncredentials_test.go client update of TURNs and STUNs (#106) 2021-09-03 17:47:40 +02:00
turncredentials.go client update of TURNs and STUNs (#106) 2021-09-03 17:47:40 +02:00
updatechannel_test.go abstract peer channel (#101) 2021-08-29 17:48:31 +02:00
updatechannel.go abstract peer channel (#101) 2021-08-29 17:48:31 +02:00
user.go Group users of same private domain (#243) 2022-03-01 15:22:18 +01:00