grafana/pkg/services
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
..
accesscontrol chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
alerting Alerting: Fix duration calculation when testing a rule (#56616) 2022-10-11 20:40:18 +08:00
annotations chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
apikey Chore: move from xorm to sqlx apikey store (#53434) 2022-08-23 11:01:35 -04:00
auth Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
cleanup Chore: Move annotations cleanup to the annotations service (#55618) 2022-09-22 15:27:48 +03:00
comments chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
contexthandler Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
correlations chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
dashboardimport Chore: Add user service method SetUsingOrg and GetSignedInUserWithCacheCtx (#53343) 2022-08-11 13:28:55 +02:00
dashboards chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
dashboardsnapshots Chore: Add user service method SetUsingOrg and GetSignedInUserWithCacheCtx (#53343) 2022-08-11 13:28:55 +02:00
dashboardversion Chore: replace xorm by sqlx in dashboardversion service (#53869) 2022-08-25 16:04:16 -05:00
datasourceproxy backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
datasources Chore: Delete unused db in orgs and use db in datasources (#57085) 2022-10-17 16:27:56 +02:00
encryption Encryption: Fall back to AES-CFB on empty algorithm metadata (#53266) 2022-08-04 09:37:53 +02:00
export ObjectStore: add a kind registry (#56507) 2022-10-08 12:05:46 -04:00
featuremgmt Theme: Inter font (behind feature toggle) (#56441) 2022-10-15 16:22:33 +02:00
folder Chore: remove busmock (#57170) 2022-10-18 13:31:56 +00:00
grpcserver GRPC Server: Add signedInUser to context (#56059) 2022-10-04 16:31:02 -04:00
guardian chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
hooks Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
kmsproviders Encryption: Refactor secrets.Service initialization (#51091) 2022-07-07 09:48:25 +02:00
ldap LDAP: log that organization mapping is skipped (#56796) 2022-10-12 08:41:11 -04:00
libraryelements Chore: remove busmock (#57170) 2022-10-18 13:31:56 +00:00
librarypanels Chore: remove busmock (#57170) 2022-10-18 13:31:56 +00:00
licensing NavTree: Don't add license and stats page unless your a Grafana Admin (#56410) 2022-10-06 14:30:51 +02:00
live chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
login Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
loginattempt Chore: Move login attempt methods to separate service (#54479) 2022-09-01 18:08:42 +02:00
multildap Split Create User (#50502) 2022-06-28 14:32:25 +02:00
navtree RBAC: Allow access to /dashboards when user has dashboards create (#56712) 2022-10-18 11:15:52 +02:00
ngalert Chore: remove busmock (#57170) 2022-10-18 13:31:56 +00:00
notifications User management: Use HMAC-SHA256 to generate time limit codes (password reset tokens) (#42334) 2022-08-18 16:01:09 +02:00
oauthtoken Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
org Chore: Delete unused db in orgs and use db in datasources (#57085) 2022-10-17 16:27:56 +02:00
playlist Playlist: Split PlaylistItem into standalone TS type (#56343) 2022-10-04 16:08:26 -04:00
plugindashboards Plugins: Add secure JSON fields to plugin setting DTO (#55313) 2022-09-21 12:20:11 +02:00
pluginsettings NavTree: Make it possible to configure where in nav tree plugins live (#55484) 2022-09-28 08:29:35 +02:00
preference Chore: remove xorm from preference (#53803) 2022-08-17 22:07:20 -04:00
provisioning chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
publicdashboards Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
query Auth: Refresh OAuth access_token automatically using the refresh_token (#56076) 2022-10-18 18:17:28 +02:00
queryhistory chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
querylibrary ObjectStore: add a kind registry (#56507) 2022-10-08 12:05:46 -04:00
quota Chore: Add user service method SetUsingOrg and GetSignedInUserWithCacheCtx (#53343) 2022-08-11 13:28:55 +02:00
rendering Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
screenshot Alerting: Change screenshots to use components (#55156) 2022-09-21 10:25:07 +01:00
search chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
searchusers Chore: Move methods from sqlstore to user store (#56305) 2022-10-05 09:34:36 +02:00
searchV2 Search: load dashboards optimization (#56933) 2022-10-18 23:53:15 +08:00
secrets chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
serviceaccounts chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
shorturls chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
sqlstore Quota(fix): remove service accounts from quota count (#56700) 2022-10-18 12:26:38 +01:00
star add sqlx_store into star service (#53430) 2022-08-17 11:17:23 -05:00
store Storage: Dashboard summary builder cleanup (#56665) 2022-10-13 09:29:19 -04:00
tag Chore: implement sqlx into tag service (#55908) 2022-09-28 08:23:40 -04:00
team Chore: Copy user methods over to user store (#56000) 2022-10-04 12:17:55 +02:00
teamguardian chore: replace sqlstore.Store with db.DB (#57010) 2022-10-14 15:33:06 -04:00
temp_user Chore: Split temporary user (invite) service (#55397) 2022-09-20 11:29:17 +02:00
thumbs StoreSplit: move dashboard thumbs into thumbs service (#55800) 2022-09-27 08:46:03 -04:00
updatechecker NavTree: Make it possible to configure where in nav tree plugins live (#55484) 2022-09-28 08:29:35 +02:00
user Chore: Move methods from sqlstore to user store (#56305) 2022-10-05 09:34:36 +02:00
userauth Chore: Split delete user method (#52216) 2022-07-19 16:01:05 +02:00
validations Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00