mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Add teamHeaders for datasource proxy requests * adds validation for the teamHeaders * added tests for applying teamHeaders * remove previous implementation * validation for header values being set to authproxy * removed unnecessary checks * newline * Add middleware for injecting headers on the data source backend * renamed feature toggle * Get user teams from context * Fix feature toggle name * added test for validation of the auth headers and fixed evaluation to cover headers * renaming of teamHeaders to teamHTTPHeaders * use of header set for non-existing header and add for existing headers * moves types into datasources * fixed unchecked errors * Refactor * Add tests for data model * Update pkg/api/datasources.go Co-authored-by: Victor Cinaglia <victor@grafana.com> * Update pkg/api/datasources.go Co-authored-by: Victor Cinaglia <victor@grafana.com> --------- Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com> Co-authored-by: Victor Cinaglia <victor@grafana.com> |
||
---|---|---|
.. | ||
cmd | ||
cmputil | ||
converter | ||
errutil | ||
maputil | ||
proxyutil | ||
retryer | ||
ticker | ||
xorm | ||
contextutil_test.go | ||
contextutil.go | ||
encoding_test.go | ||
encoding.go | ||
encryption_test.go | ||
encryption.go | ||
filepath_test.go | ||
filepath.go | ||
ip_address_test.go | ||
ip_address.go | ||
json.go | ||
math.go | ||
md5_test.go | ||
md5.go | ||
pointer.go | ||
reverse_test.go | ||
reverse.go | ||
shortid_generator_test.go | ||
shortid_generator.go | ||
split_email_test.go | ||
split_email.go | ||
strings_test.go | ||
strings.go | ||
tls_test.go | ||
tls.go | ||
url_test.go | ||
url.go | ||
validation_test.go | ||
validation.go |