netbird/management/server/http
pascal-fischer da75a76d41
Adding dashboard login activity (#1092)
For better auditing this PR adds a dashboard login event to the management service.

For that the user object was extended with a field for last login that is not actively saved to the database but kept in memory until next write. The information about the last login can be extracted from the JWT claims nb_last_login. This timestamp will be stored and compared on each API request. If the value changes we generate an event to inform about a login.
2023-08-18 19:23:11 +02:00
..
api Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
middleware Use error level for JWT parsing error logs (#1026) 2023-07-22 17:56:27 +02:00
util Check links of groups before delete it (#1010) 2023-07-14 20:45:40 +02:00
accounts_handler_test.go Autopropagate peers by JWT groups (#1037) 2023-08-07 19:44:51 +04:00
accounts_handler.go Autopropagate peers by JWT groups (#1037) 2023-08-07 19:44:51 +04:00
dns_settings_handler_test.go changed the naming convention for all handling objects and methods to have unified way 2023-02-28 15:01:24 +01:00
dns_settings_handler.go changed the naming convention for all handling objects and methods to have unified way 2023-02-28 15:01:24 +01:00
events_handler_test.go use UTC everywhere in server 2023-04-03 15:09:35 +02:00
events_handler.go changed the naming convention for all handling objects and methods to have unified way 2023-02-28 15:01:24 +01:00
groups_handler_test.go Check links of groups before delete it (#1010) 2023-07-14 20:45:40 +02:00
groups_handler.go Check links of groups before delete it (#1010) 2023-07-14 20:45:40 +02:00
handler.go Add API Endpoint for Resending User Invitations in Auth0 (#989) 2023-07-03 12:20:19 +02:00
nameservers_handler_test.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
nameservers_handler.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
pat_handler_test.go Block user through HTTP API (#846) 2023-05-11 18:09:36 +02:00
pat_handler.go move validation into account manager + func for get requests 2023-03-30 13:58:44 +02:00
peers_handler_test.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
peers_handler.go merge openapi with version from docs repo 2023-05-26 15:32:52 +02:00
policies_handler_test.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
policies_handler.go Fix validation for ACL policy rules ports (#938) 2023-06-07 08:57:43 +02:00
routes_handler_test.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
routes_handler.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
rules_handler_test.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
rules_handler.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
setupkeys_handler_test.go Validate input of expiration time for setup-keys (#1053) 2023-08-04 23:54:51 +02:00
setupkeys_handler.go Validate input of expiration time for setup-keys (#1053) 2023-08-04 23:54:51 +02:00
users_handler_test.go Add API Endpoint for Resending User Invitations in Auth0 (#989) 2023-07-03 12:20:19 +02:00
users_handler.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00