netbird/management/server/http
Misha Bragin fe63a64b6e
Add Account HTTP API (#691)
Extend HTTP API with Account endpoints to configure global peer login expiration.
GET /api/accounts
PUT /api/account/{id}/

The GET endpoint returns an array of accounts with
always one account in the list. No exceptions.

The PUT endpoint updates account settings:
PeerLoginExpiration and PeerLoginExpirationEnabled.

PeerLoginExpiration is a duration in seconds after which peers' logins will expire.
2023-02-16 12:00:41 +01:00
..
api Add Account HTTP API (#691) 2023-02-16 12:00:41 +01:00
middleware Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
util Replace gRPC errors in business logic with internal ones (#558) 2022-11-11 20:36:45 +01:00
accounts_test.go Add Account HTTP API (#691) 2023-02-16 12:00:41 +01:00
accounts.go Add Account HTTP API (#691) 2023-02-16 12:00:41 +01:00
dns_settings_test.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
dns_settings.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
events_test.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
events.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
groups_test.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
groups.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
handler.go Add Account HTTP API (#691) 2023-02-16 12:00:41 +01:00
nameservers_test.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
nameservers.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
peers_test.go Add login expiration fields to peer HTTP API (#687) 2023-02-14 10:14:00 +01:00
peers.go Update peer status when login expires (#688) 2023-02-15 11:27:22 +01:00
routes_test.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
routes.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
rules_test.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
rules.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
setupkeys_test.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
setupkeys.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
users_test.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
users.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00