grafana/pkg/services/ldap
sh0rez 3d5d8c785b
pkg/web: restrict handler types (#48495)
Makes `pkg/web` only accept handles from the following set:

```go
	handlerStd       = func(http.ResponseWriter, *http.Request)
	handlerStdCtx    = func(http.ResponseWriter, *http.Request, *web.Context)
	handlerStdReqCtx = func(http.ResponseWriter, *http.Request, *models.ReqContext)
	handlerReqCtx    = func(*models.ReqContext)
	handlerReqCtxRes = func(*models.ReqContext) Response
	handlerCtx       = func(*web.Context)
```

This is a first step to reducing above set to only `http.Handler`.

---

Due to a cyclic import situation between `pkg/models` and `pkg/web`, parts of this PR were put into `pkg/api/response`, even though they definitely do not belong there. This however is _temporary_ until we untangle `models.ReqContext`.
2022-05-20 12:45:18 -04:00
..
testdata LDAP: Interpolate env variable expressions in ldap.toml file (#20173) 2019-11-06 21:41:21 +01:00
helpers.go LDAP: Fix debug view to display the actual computed mapping in ldap.go (#48103) 2022-04-22 15:45:54 +02:00
ldap_groups.go LDAP: Use an interface instead of a bus to get group teams (#42165) 2022-02-01 12:03:21 +01:00
ldap_helpers_test.go LDAP: Fix debug view to display the actual computed mapping in ldap.go (#48103) 2022-04-22 15:45:54 +02:00
ldap_login_test.go LDAP: Search all DNs for users (#38891) 2021-09-14 10:49:37 +02:00
ldap_private_test.go LDAP: Search all DNs for users (#38891) 2021-09-14 10:49:37 +02:00
ldap_test.go LDAP: Search all DNs for users (#38891) 2021-09-14 10:49:37 +02:00
ldap.go LDAP: allow Grafana Admin mapping without org_role field (#37189) 2022-05-06 12:12:42 +02:00
settings_test.go Chore: Disable default golangci-lint filter (#29751) 2020-12-15 09:32:06 +01:00
settings.go LDAP: validate organization role during parsing (#37188) 2022-05-04 09:35:10 +02:00
testing.go pkg/web: restrict handler types (#48495) 2022-05-20 12:45:18 -04:00