netbird/management/server/jwtclaims
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
..
claims.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
extractor_test.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
extractor.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
jwtValidator.go Use error level for JWT parsing error logs (#1026) 2023-07-22 17:56:27 +02:00