grafana/pkg/services/authn/authnimpl
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
..
sync Auth: Fix Last Seen being updated on every request (#72036) 2023-07-24 16:37:35 +02:00
metrics.go AuthN: add metrics for login and authentication (#63783) 2023-03-06 17:07:57 +01:00
priority_queue_test.go Chore: Fix goimports grouping (#62426) 2023-01-30 09:34:18 +01:00
priority_queue.go AuthN: Rebuild Authenticate so we only have to call it once in context handler (#61705) 2023-01-26 10:50:44 +01:00
service_test.go AuthN: add metrics for login and authentication (#63783) 2023-03-06 17:07:57 +01:00
service.go Auth: Fix Last Seen being updated on every request (#72036) 2023-07-24 16:37:35 +02:00
usage_stats_test.go Auth: Fix orgrole picker disabled if isSynced user (#64033) 2023-03-22 17:41:59 +00:00
usage_stats.go Auth: Fix orgrole picker disabled if isSynced user (#64033) 2023-03-22 17:41:59 +00:00