Carl Bergquist
64c2032c2b
Auth: removes temporary cache of user session token ( #62730 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2023-02-06 13:51:12 +01:00
Misi
7c1d9769ca
Auth: Rotate token patch ( #62676 )
...
* Use singleflight.Group
* Align tests
* Cleanup
2023-02-02 14:36:16 +01:00
Serge Zaitsev
7dbd2cd139
Chore: Fix goimports grouping ( #62426 )
...
fix goimports ordering
2023-01-30 09:34:18 +01:00
Jo
df4f0343e5
Auth: Session cache [main] ( #59935 )
...
* Auth: Session cache [v9.2.x] (#59907 )
* add cache wrapper
only cache token if not to rotate
Co-authored-by: Kalle Persson <kalle.persson@grafana.com >
anticipate next rotation
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com >
Co-authored-by: Kalle Persson <kalle.persson@grafana.com >
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
(cherry picked from commit 07a4b2343d )
* FeatureToggle: for storing sessions in a Remote Cache
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com >
(cherry picked from commit b8a8c15148 )
* use feature flag for session cache
* ensure ttl is minimum 1 second
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com >
Co-authored-by: Kalle Persson <kalle.persson@grafana.com >
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
* ensure 2 ttl window to prevent caching of tokens near rotation
Co-authored-by: Kalle Persson <kalle.persson@grafana.com >
* fix description of toggle
Co-authored-by: gamab <gabi.mabs@gmail.com >
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com >
Co-authored-by: Kalle Persson <kalle.persson@grafana.com >
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
(cherry picked from commit 2919588a82 )
* fix broken quota test
2022-12-07 10:55:48 +01:00
Karl Persson
062c5b805c
Auth: Merge ActiveAuthTokenService into UserAuthTokenService ( #59032 )
...
* Auth: Merge UserTokenService and ActiveAuthTokenService
* Auth: Rename function
2022-11-22 10:58:59 +01:00
Karl Persson
fef1e1d5bc
Auth: Refactor auth package ( #58920 )
...
* Auth: move interface to its own file
* Auth: move to test package
* Auth: move quota consts to auth file
* Auth: move service to impl package
* Auth: move interfaces and related models to auth package
* Auth: Create sub package and type alias to avoid circular dependency
2022-11-18 09:56:06 +01:00