grafana/conf
Dan Cech 9020eb4b17
Auth: Update oauthtoken service to use remote cache and server lock (#90572)
* update oauthtoken service to use remote cache and server lock

* remove token cache

* retry is lock is held by an in-flight refresh

* refactor token renewal to avoid race condition

* re-add refresh token expiry cache, but in SyncOauthTokenHook

* Add delta to the cache ttl

* Fix merge

* Change lockTimeConfig

* Always set the token from within the server lock

* Improvements

* early return when user is not authed by OAuth or refresh is disabled

* Allow more time for token refresh, tracing

* Retry on Mysql Deadlock error 1213

* Update pkg/services/authn/authnimpl/sync/oauth_token_sync.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* Update pkg/services/authn/authnimpl/sync/oauth_token_sync.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* Add settings for configuring min wait time between retries

* Add docs for the new setting

* Clean up

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-08-19 18:57:37 +02:00
..
provisioning chore: remove repetitive words (#86412) 2024-04-17 13:08:00 +01:00
defaults.ini Auth: Update oauthtoken service to use remote cache and server lock (#90572) 2024-08-19 18:57:37 +02:00
ldap_multiple.toml LDAP: small improvements to various LDAP parts (#17662) 2019-06-19 15:46:04 +02:00
ldap.toml LDAP: Update ldap config comments with TLS info (#91636) 2024-08-08 17:01:22 +03:00
sample.ini Auth: Update oauthtoken service to use remote cache and server lock (#90572) 2024-08-19 18:57:37 +02:00