grafana/pkg/middleware
Karl Persson 95ea4bad6f
AuthN: Rebuild Authenticate so we only have to call it once in context handler (#61705)
* API: Add reqSignedIn to router groups

* AuthN: Add fall through in context handler

* AuthN: Add IsAnonymous field

* AuthN: add priority to context aware clients

* ContextHandler: Add comment

* AuthN: Add a simple priority queue

* AuthN: Add Name to client interface

* AuthN: register clients with function

* AuthN: update mock and fake to implement interface

* AuthN: rewrite test without reflection

* AuthN: add comment

* AuthN: fix queue insert

* AuthN: rewrite tests

* AuthN: make the queue generic so we can reuse it for hooks

* ContextHandler: Add fixme for auth headers

* AuthN: remove unused variable

* AuthN: use multierror

* AuthN: write proper tests for queue

* AuthN: Add queue item that can store the value and priority

Co-authored-by: Jo <joao.guerreiro@grafana.com>
2023-01-26 10:50:44 +01:00
..
cookies Chore: Make NewCookieOptions exported in cookies.go (#56476) 2022-10-06 20:00:54 +02:00
csrf CSRF: Fix additional headers option (#50629) 2022-07-13 19:28:59 +01:00
auth_test.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
auth.go AuthN: Rebuild Authenticate so we only have to call it once in context handler (#61705) 2023-01-26 10:50:44 +01:00
csp.go Middleware: Add CSP Report Only support (#58074) 2022-11-16 17:11:26 +00:00
dashboard_redirect_test.go Chore: Remove endpoints that contain the slug field (#35104) 2021-06-03 16:20:13 +03:00
dashboard_redirect.go Chore: Remove endpoints that contain the slug field (#35104) 2021-06-03 16:20:13 +03:00
gziper.go Chore: replace macaron with web package (#40136) 2021-10-11 14:30:59 +02:00
logger_test.go Auth: Implement Token URL JWT Auth (#52662) 2022-07-27 16:10:47 +02:00
logger.go Plugins: Add username to datasource plugin logging (#59893) 2022-12-07 13:15:42 +01:00
middleware_basic_auth_test.go [main] Plugin fixes (#57399) 2022-10-21 13:54:55 +02:00
middleware_jwt_auth_test.go chore: move jwt models into auth/jwt (#61862) 2023-01-20 13:11:06 -05:00
middleware_test.go API: Change how Cache-Control and related headers are set (#62021) 2023-01-25 09:09:27 -05:00
middleware.go API: Change how Cache-Control and related headers are set (#62021) 2023-01-25 09:09:27 -05:00
org_redirect_test.go Auth: Refactor auth package (#58920) 2022-11-18 09:56:06 +01:00
org_redirect.go UserService: use the UserService instead of calling sqlstore directly (#55745) 2022-09-27 07:58:49 -04:00
quota_test.go Auth: Refactor auth package (#58920) 2022-11-18 09:56:06 +01:00
quota.go Chore: Refactor quota service (#58643) 2022-11-14 21:08:10 +02:00
recovery_test.go Auth: Refactor auth package (#58920) 2022-11-18 09:56:06 +01:00
recovery.go Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
request_metrics.go pkg/web: closure-style middlewares (#51238) 2022-08-09 14:58:50 +02:00
request_test.go metrics: add operation name used in metrics/tracing for middlewares (#53949) 2022-08-25 10:11:27 +02:00
request_tracing.go Instrumentation: Add api/health to the unnamed handlers (#55478) 2022-09-22 13:03:20 +03:00
testing.go chore: move jwt models into auth/jwt (#61862) 2023-01-20 13:11:06 -05:00
validate_host.go Chore: replace macaron with web package (#40136) 2021-10-11 14:30:59 +02:00