grafana/pkg/services/sqlstore/migrations
Joan López de la Franca Beltran 610999cfa2
Auth: Allow soft token revocation (#31601)
* Add revoked_at field to user auth token to allow soft revokes

* Allow soft token revocations

* Update token revocations and tests

* Return error info on revokedTokenErr

* Override session cookie only when no revokedErr nor API request

* Display modal on revoked token error

* Feedback: Refactor TokenRevokedModal to FC

* Add GetUserRevokedTokens into UserTokenService

* Backendsrv: adds tests and refactors soft token path

* Apply feedback

* Write redirect cookie on token revoked error

* Update TokenRevokedModal style

* Return meaningful error info

* Some UI changes

* Update backend_srv tests

* Minor style fix on backend_srv tests

* Replace deprecated method usage to publish events

* Fix backend_srv tests

* Apply suggestions from code review

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>

* Minor style fix after PR suggestion commit

* Apply suggestions from code review

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>

* Prettier fixes

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>
2021-03-16 17:44:02 +01:00
..
alert_mig.go SQL: Define primary key for tables without it (#22255) 2020-11-17 17:58:56 +01:00
annotation_mig.go SQL: Define primary key for tables without it (#22255) 2020-11-17 17:58:56 +01:00
apikey_mig.go Auth: Allow expiration of API keys (#17678) 2019-06-26 09:47:03 +03:00
cache_data_mig.go renames key to cache_key 2019-03-11 10:49:55 +01:00
common.go login: uses epochs for login throtting. 2018-02-16 17:25:46 +01:00
dashboard_acl.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
dashboard_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
dashboard_snapshot_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
dashboard_version_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
datasource_mig.go Alerting: improve alerting default datasource search when extracting alerts (#29993) 2021-01-07 21:33:17 +01:00
heartbeat_mig.go feat(query_part): refactoring query part 2016-08-15 17:20:45 +02:00
login_attempt_mig.go login: migration fix. 2018-02-16 17:36:28 +01:00
migrations_test.go Chore: Rewrite sqlstore migration test to use standard library (#29589) 2020-12-04 09:05:00 +01:00
migrations.go Dashboard: Allow shortlink generation (#27409) 2020-10-14 12:48:48 +02:00
org_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
playlist_mig.go utf8mb4 encoding (#7959) 2017-03-28 14:34:53 +02:00
plugin_setting.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
preferences_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
quota_mig.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
serverlock_migrations.go moves migrations to /sqlstore/migrations 2018-12-17 16:36:57 +01:00
session_mig.go Issue 3461: Session table is now created automatically 2015-12-23 01:33:46 -06:00
short_url_mig.go Chore: Fix issues reported by staticcheck; enable stylecheck linter (#28866) 2020-11-05 15:37:11 +01:00
stats_mig.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
tag_mig.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
team_mig.go Teams: Add index for permission check (#25736) 2020-06-26 15:13:53 +02:00
temp_user.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
user_auth_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
user_auth_token_mig.go Auth: Allow soft token revocation (#31601) 2021-03-16 17:44:02 +01:00
user_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00