grafana/pkg/services/publicdashboards
Misi 9c954d06ab
Auth: Refresh OAuth access_token automatically using the refresh_token (#56076)
* Verify OAuth token expiration for oauth users in the ctx handler middleware

* Use refresh token to get a new access token

* Refactor oauth_token.go

* Add tests for the middleware changes

* Align other tests

* Add tests, wip

* Add more tests

* Add InvalidateOAuthTokens method

* Fix ExpiryDate update to default

* Invalidate OAuth tokens during logout

* Improve logout

* Add more comments

* Cleanup

* Fix import order

* Add error to HasOAuthEntry return values

* add dev debug logs

* Fix tests

Co-authored-by: jguer <joao.guerreiro@grafana.com>
2022-10-18 18:17:28 +02:00
..
api Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
database Public Dashboards: audit log paths and add traceId where user facing error is different (#56914) 2022-10-17 13:17:24 -08:00
internal refactor public dashboards middleware testing (#55706) 2022-10-06 12:35:19 -08:00
models PublicDashboards: Validate access token not to be duplicated and add retries. (#56755) 2022-10-13 11:32:32 -03:00
queries PublicDashboards: Fix hidden queries execution (#57004) 2022-10-18 10:47:24 -03:00
service PublicDashboards: Fix hidden queries execution (#57004) 2022-10-18 10:47:24 -03:00
validation refactor public dashboards middleware testing (#55706) 2022-10-06 12:35:19 -08:00
public_dashboard_service_mock.go Public Dashboards: audit log paths and add traceId where user facing error is different (#56914) 2022-10-17 13:17:24 -08:00
public_dashboard_store_mock.go Public Dashboards: audit log paths and add traceId where user facing error is different (#56914) 2022-10-17 13:17:24 -08:00
publicdashboard.go Public Dashboards: audit log paths and add traceId where user facing error is different (#56914) 2022-10-17 13:17:24 -08:00