grafana/pkg/services/contexthandler/authproxy
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_test.go Auth: Pass user role to Grafana using auth proxy (#36729) 2021-07-22 15:49:58 +02:00
authproxy.go Auth: Pass user role to Grafana using auth proxy (#36729) 2021-07-22 15:49:58 +02:00