grafana/pkg/api
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
..
apierrors
avatar
datasource
dtos Navigation: show breadcrumbs correctly when on the home page (#55759) 2022-10-03 15:05:19 +01:00
frontendlogging
pluginproxy Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
response
routing
static
accesscontrol.go NavTree: Refactor out the navtree building from api/index.go and into it's own service (#55552) 2022-09-22 22:04:48 +02:00
admin.go
admin_encryption.go
admin_provisioning.go
admin_provisioning_test.go
admin_test.go
admin_users.go Chore: Copy sqlstore methods to user store (#56280) 2022-10-04 14:14:32 +02:00
admin_users_test.go UserService: use the UserService instead of calling sqlstore directly (#55745) 2022-09-27 07:58:49 -04:00
alerting.go Chore: fix formating for swagger definitions (#54993) 2022-09-12 10:40:35 +03:00
annotations.go Annotation: Optionally allow storing longer annotation tags (#54754) 2022-09-23 06:04:41 -04:00
annotations_test.go Chore: Switch over to team.Service instead of sqlstore (#55497) 2022-09-20 18:58:04 +02:00
api.go Dashboard: Add dashboard validation warning to save drawer (#55732) 2022-10-14 09:51:05 -04:00
apikey.go Chore: fix formating for swagger definitions (#54993) 2022-09-12 10:40:35 +03:00
basic_auth.go
basic_auth_test.go
comments.go
common_test.go Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
dashboard.go Dashboard: Add dashboard validation warning to save drawer (#55732) 2022-10-14 09:51:05 -04:00
dashboard_permission.go
dashboard_permission_test.go
dashboard_snapshot.go
dashboard_snapshot_test.go Chore: Switch over to team.Service instead of sqlstore (#55497) 2022-09-20 18:58:04 +02:00
dashboard_test.go chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
dataproxy.go
datasources.go resolve merge conflicts (#55503) 2022-09-20 13:31:08 -04:00
datasources_test.go NavTree: Make it possible to configure where in nav tree plugins live (#55484) 2022-09-28 08:29:35 +02:00
fakes.go NavTree: Make it possible to configure where in nav tree plugins live (#55484) 2022-09-28 08:29:35 +02:00
folder.go
folder_permission.go
folder_permission_test.go Chore: Move folder service into a separate package (#56591) 2022-10-10 21:47:53 +02:00
folder_test.go Chore: Move folder service into a separate package (#56591) 2022-10-10 21:47:53 +02:00
frontend_logging.go Frontend logging: handle logging endpoints without expensive middleware (#54960) 2022-09-12 13:04:43 +03:00
frontend_logging_test.go Frontend logging: handle logging endpoints without expensive middleware (#54960) 2022-09-12 13:04:43 +03:00
frontend_metrics.go
frontendsettings.go LDAP: Add `skip_org_role_sync` configuration option (#56679) 2022-10-12 13:33:33 +02:00
frontendsettings_test.go NavTree: Make it possible to configure where in nav tree plugins live (#55484) 2022-09-28 08:29:35 +02:00
grafana_com_proxy.go
health.go
health_test.go
http_server.go Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
http_server_test.go
index.go NavTree: Make it possible to configure where in nav tree plugins live (#55484) 2022-09-28 08:29:35 +02:00
ldap_debug.go Chore: Move SearchOrgs to org service (#55416) 2022-09-20 09:55:40 +02:00
ldap_debug_test.go Chore: Move SearchOrgs to org service (#55416) 2022-09-20 09:55:40 +02:00
login.go Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
login_oauth.go Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
login_oauth_test.go
login_test.go NavTree: Make it possible to configure where in nav tree plugins live (#55484) 2022-09-28 08:29:35 +02:00
metrics.go Datasources: Support mixed datasources in a single query (#56832) 2022-10-14 10:27:06 -04:00
metrics_test.go Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
openapi3.go
org.go Remove org methods from sqlstore interface (#56358) 2022-10-05 15:47:56 +02:00
org_invite.go UserService: use the UserService instead of calling sqlstore directly (#55745) 2022-09-27 07:58:49 -04:00
org_invite_test.go
org_test.go Remove org methods from sqlstore interface (#56358) 2022-10-05 15:47:56 +02:00
org_users.go Chore: Use org service methods (#55738) 2022-09-26 18:53:17 +02:00
org_users_test.go Chore: Move methods from sqlstore to user store (#56305) 2022-10-05 09:34:36 +02:00
password.go
playlist.go Playlist: update service so it supports both read+write (#55959) 2022-10-04 11:11:18 -04:00
playlist_play.go Playlist: update service so it supports both read+write (#55959) 2022-10-04 11:11:18 -04:00
plugin_dashboards.go
plugin_dashboards_test.go
plugin_metrics.go
plugin_metrics_test.go
plugin_proxy.go
plugin_proxy_test.go
plugin_resource.go
plugins.go Plugins: Create single point of entry for adding / removing plugins (#55463) 2022-09-23 14:27:01 +02:00
plugins_test.go NavTree: Make it possible to configure where in nav tree plugins live (#55484) 2022-09-28 08:29:35 +02:00
preferences.go
preferences_test.go NavTree: Refactor out the navtree building from api/index.go and into it's own service (#55552) 2022-09-22 22:04:48 +02:00
quota.go Chore: fix formating for swagger definitions (#54993) 2022-09-12 10:40:35 +03:00
quota_test.go NavTree: Refactor out the navtree building from api/index.go and into it's own service (#55552) 2022-09-22 22:04:48 +02:00
render.go
search.go Chore: fix formating for swagger definitions (#54993) 2022-09-12 10:40:35 +03:00
search_test.go
short_url.go
short_url_test.go
signup.go Chore: Split temporary user (invite) service (#55397) 2022-09-20 11:29:17 +02:00
stars.go Star: Add uid in the endpoint (#54340) 2022-10-05 22:32:49 +02:00
swagger.go
swagger_responses.go
swagger_tags.json
team.go Chore: Switch over to team.Service instead of sqlstore (#55497) 2022-09-20 18:58:04 +02:00
team_members.go Chore: Switch over to team.Service instead of sqlstore (#55497) 2022-09-20 18:58:04 +02:00
team_members_test.go Remove org methods from sqlstore interface (#56358) 2022-10-05 15:47:56 +02:00
team_test.go Chore: Move team store implementation to a separate package (#55514) 2022-09-22 19:16:21 +02:00
user.go Remove org methods from sqlstore interface (#56358) 2022-10-05 15:47:56 +02:00
user_test.go Chore: Move methods from sqlstore to user store (#56305) 2022-10-05 09:34:36 +02:00
user_token.go
user_token_test.go
utils.go