grafana/pkg/services/contexthandler
Jo ed780ce0e9
Auth: Fix Last Seen being updated on every request (#72036)
* make sure LastSeen hook has information to decide if update is necessary

* make user service check if it should update the user's last seen

* do not run last seen hook if is a login request

* make service return error when last seen is up to date

* fix err

* Update pkg/services/contexthandler/contexthandler.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* fix golint

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-07-24 16:37:35 +02:00
..
authproxy Chore: Remove result fields from login (#65136) 2023-03-28 20:32:21 +02:00
ctxkey pkg/web: restrict handler types (#48495) 2022-05-20 12:45:18 -04:00
model Caching: Refactor enterprise query caching middleware to a wire service (#65616) 2023-04-12 12:30:33 -04:00
auth_jwt.go AuthJWT: Fix JWT query param leak (CVE-2023-1387) (#825) 2023-04-27 14:40:44 +03:00
auth_proxy_test.go Remotecache: rename setbytearray/getbytearray to set/get and remove codec (#64470) 2023-03-10 13:57:29 +01:00
contexthandler_test.go Chore: Add grafana-apiserver (#70721) 2023-07-14 12:22:10 -07:00
contexthandler.go Auth: Fix Last Seen being updated on every request (#72036) 2023-07-24 16:37:35 +02:00