grafana/pkg/middleware
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
..
cookies Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
auth_test.go Profile: Fixes profile preferences being accessible when anonymous access was enabled (#31516) 2021-02-27 18:04:28 +01:00
auth.go Auth: Allow soft token revocation (#31601) 2021-03-16 17:44:02 +01:00
csp.go Chore: remove CSP debug logging line (#30689) 2021-01-27 13:31:41 -08:00
dashboard_redirect_test.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
dashboard_redirect.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
gziper.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
logger.go Move middleware context handler logic to service (#29605) 2020-12-11 11:44:44 +01:00
middleware_basic_auth_test.go Move middleware context handler logic to service (#29605) 2020-12-11 11:44:44 +01:00
middleware_test.go Middleware: Add CSP support (#29740) 2021-01-12 07:42:32 +01:00
middleware.go Profile: Fixes profile preferences being accessible when anonymous access was enabled (#31516) 2021-02-27 18:04:28 +01:00
org_redirect_test.go middleware: Make scenario test functions take a testing.T argument (#29564) 2020-12-04 11:09:32 +01:00
org_redirect.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
quota_test.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
quota.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
rate_limit_test.go Move middleware context handler logic to service (#29605) 2020-12-11 11:44:44 +01:00
rate_limit.go Logging: rate limit fronted logging endpoint (#29272) 2020-12-09 16:22:24 +01:00
recovery_test.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
recovery.go Backend: Migrate to using non-global configuration (#31856) 2021-03-10 12:41:29 +01:00
request_metrics.go instrumentation: align label name with our other projects (#29514) 2020-12-08 14:26:07 +01:00
request_tracing.go mark >=400 responses as error 2017-09-18 11:08:58 +02:00
testing.go Chore: Add CloudWatch HTTP API tests (#29691) 2021-01-07 11:36:13 +01:00
validate_host.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00