grafana/pkg/services/contexthandler
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
..
authproxy Auth: Pass user role to Grafana using auth proxy (#36729) 2021-07-22 15:49:58 +02:00
auth_jwt.go bus: add ctx for all signed in user queries (#33970) 2021-05-18 18:24:42 +02:00
auth_proxy_test.go bus: add ctx for all signed in user queries (#33970) 2021-05-18 18:24:42 +02:00
contexthandler_test.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
contexthandler.go Instrumentation: add more tracing in the auth context handler. (#34939) 2021-05-31 21:39:28 +02:00