grafana/pkg/services/authn/clients
Karl Persson 382b24742a
Auth: Add feature flag to move token rotation to client (#65060)
* FeatureToggle: Add toggle to use a new way of rotating tokens

* API: Add endpoints to perform token rotation, one endpoint for api request and one endpoint for redirectsd

* Auth: Aling not authorized handling between auth middleware and access
control middleware

* API: add utility function to get redirect for login

* API: Handle token rotation redirect for login page

* Frontend: Add job scheduling for token rotation and make call to token rotation as fallback in retry request

* ContextHandler: Prevent in-request rotation if feature flag is enabled and check if token needs to be rotated

* AuthN: Prevent in-request rotation if feature flag is enabled and check if token needs to be rotated

* Cookies: Add option NotHttpOnly

* AuthToken: Add helper function to get next rotation time and another function to check if token need to be rotated

* AuthN: Add function to delete session cookie and set expiry cookie

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-03-23 14:39:04 +01:00
..
anonymous_test.go Authn: Anon session service (#63052) 2023-02-21 16:21:18 +01:00
anonymous.go Auth: Add SyncPermissions post auth hook (#64205) 2023-03-08 13:35:54 +01:00
api_key_test.go Auth: Add SyncPermissions post auth hook (#64205) 2023-03-08 13:35:54 +01:00
api_key.go Chore: Remove result field from API keys commands and queries (#65055) 2023-03-21 13:26:33 +01:00
basic_test.go Chore: Fix goimports grouping (#62426) 2023-01-30 09:34:18 +01:00
basic.go Authn: Fix password client fallthrough (#63244) 2023-02-12 13:42:47 +00:00
constants.go AuthN: Perform login with authn.Service (#61466) 2023-01-17 09:11:45 +01:00
form_test.go AuthN: Perform login with authn.Service (#61466) 2023-01-17 09:11:45 +01:00
form.go AuthN: Rebuild Authenticate so we only have to call it once in context handler (#61705) 2023-01-26 10:50:44 +01:00
grafana_test.go Auth: Add SyncPermissions post auth hook (#64205) 2023-03-08 13:35:54 +01:00
grafana.go Auth: Add SyncPermissions post auth hook (#64205) 2023-03-08 13:35:54 +01:00
jwt_test.go Auth: Add SyncPermissions post auth hook (#64205) 2023-03-08 13:35:54 +01:00
jwt.go Auth: Add SyncPermissions post auth hook (#64205) 2023-03-08 13:35:54 +01:00
ldap_test.go Auth: Add SyncPermissions post auth hook (#64205) 2023-03-08 13:35:54 +01:00
ldap.go Auth: Add SyncPermissions post auth hook (#64205) 2023-03-08 13:35:54 +01:00
oauth_test.go AuthN: add flag for org roles sync (#63507) 2023-02-22 10:27:48 +01:00
oauth.go Auth: Add SyncPermissions post auth hook (#64205) 2023-03-08 13:35:54 +01:00
password_test.go Chore: Fix goimports grouping (#62426) 2023-01-30 09:34:18 +01:00
password.go AuthN: cleanup logs (#63652) 2023-02-24 11:26:55 +01:00
proxy_test.go Remotecache: rename setbytearray/getbytearray to set/get and remove codec (#64470) 2023-03-10 13:57:29 +01:00
proxy.go Remotecache: rename setbytearray/getbytearray to set/get and remove codec (#64470) 2023-03-10 13:57:29 +01:00
render_test.go Auth: Add SyncPermissions post auth hook (#64205) 2023-03-08 13:35:54 +01:00
render.go Auth: Add SyncPermissions post auth hook (#64205) 2023-03-08 13:35:54 +01:00
session_test.go Auth: Add feature flag to move token rotation to client (#65060) 2023-03-23 14:39:04 +01:00
session.go Auth: Add feature flag to move token rotation to client (#65060) 2023-03-23 14:39:04 +01:00
utils.go AuthN: add flag for org roles sync (#63507) 2023-02-22 10:27:48 +01:00