grafana/pkg/middleware
yuwaMSFT2 ad1f792b8b
Auth: Pass user role to Grafana using auth proxy (#36729)
* Pass role to Grafana using auth proxy

By default, the role will be applied to the default org of the user.
If the request uses the standard header "X-Grafana-Org-Id", the role will be applied to the specified org

Tested in both unit test and manually E2E

* Address comment: only allow the user role to be applied to the default org

Co-authored-by: Leonard Gram <leo@xlson.com>
2021-07-22 15:49:58 +02: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 Login: Require user to not be signed in to get request password email (#35421) 2021-06-14 18:02:05 +02:00
csp.go Security: Update default CSP template and fix firefox CSP issues (#34836) 2021-05-28 17:01:10 +02: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 live: disable gzip for ws endpoints (#34015) 2021-05-12 18:39:57 +03:00
logger.go Move middleware context handler logic to service (#29605) 2020-12-11 11:44:44 +01:00
middleware_basic_auth_test.go bus: add ctx for all signed in user queries (#33970) 2021-05-18 18:24:42 +02:00
middleware_jwt_auth_test.go bus: add ctx for all signed in user queries (#33970) 2021-05-18 18:24:42 +02:00
middleware_test.go Auth: Pass user role to Grafana using auth proxy (#36729) 2021-07-22 15:49:58 +02: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 bus: add ctx for all signed in user queries (#33970) 2021-05-18 18:24:42 +02:00
org_redirect.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
quota_test.go bus: add ctx for all signed in user queries (#33970) 2021-05-18 18:24:42 +02: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 simplify method/code sanitization (#34723) 2021-05-26 12:18:54 +02:00
request_tracing.go Chore: Improve request distributed tracing middleware (#33033) 2021-04-20 15:22:22 +02:00
testing.go Auth: support JWT Authentication (#29995) 2021-03-31 08:40:44 -07:00
validate_host.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00