mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-04 09:51:16 +01:00
* 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>
41 lines
1.4 KiB
JSON
41 lines
1.4 KiB
JSON
{
|
|
"Accounts": {
|
|
"bf1c8084-ba50-4ce7-9439-34653001fc3b": {
|
|
"Id": "bf1c8084-ba50-4ce7-9439-34653001fc3b",
|
|
"Domain": "test.com",
|
|
"DomainCategory": "private",
|
|
"IsDomainPrimaryAccount": true,
|
|
"SetupKeys": {
|
|
"A2C8E62B-38F5-4553-B31E-DD66C696CEBB": {
|
|
"Key": "A2C8E62B-38F5-4553-B31E-DD66C696CEBB",
|
|
"Name": "Default key",
|
|
"Type": "reusable",
|
|
"CreatedAt": "2021-08-19T20:46:20.005936822+02:00",
|
|
"ExpiresAt": "2321-09-18T20:46:20.005936822+02:00",
|
|
"Revoked": false,
|
|
"UsedTimes": 0
|
|
|
|
}
|
|
},
|
|
"Network": {
|
|
"Id": "af1c8024-ha40-4ce2-9418-34653101fc3c",
|
|
"Net": {
|
|
"IP": "100.64.0.0",
|
|
"Mask": "/8AAAA=="
|
|
},
|
|
"Dns": null
|
|
},
|
|
"Peers": {},
|
|
"Users": {
|
|
"edafee4e-63fb-11ec-90d6-0242ac120003": {
|
|
"Id": "edafee4e-63fb-11ec-90d6-0242ac120003",
|
|
"Role": "admin"
|
|
},
|
|
"f4f6d672-63fb-11ec-90d6-0242ac120003": {
|
|
"Id": "f4f6d672-63fb-11ec-90d6-0242ac120003",
|
|
"Role": "user"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |