grafana/pkg/middleware
Oleg Gaidarenko 82661b9f69 Auth: consistently return same basic auth errors (#18310)
* Auth: consistently return same basic auth errors

* Put repeated errors in consts and return only those consts as error strings

* Add tests for errors basic auth cases and moves tests to separate test-case.
  Also names test cases consistently

* Add more error logs and makes their messages consistent

* A bit of code style

* Add additional test helper

* Auth: do not expose even incorrect password

* Auth: address review comments

Use `Debug` for the cases when it's an user error
2019-08-02 11:16:31 +02:00
..
auth_proxy Auth Proxy: Include additional headers as part of the cache key (#18298) 2019-07-31 11:23:00 +01:00
auth_proxy.go Auth Proxy: Log any error in middleware (#17275) 2019-05-27 10:38:17 +02:00
auth_test.go Chore: use remote cache instead of session storage (#16114) 2019-04-08 14:31:46 +03:00
auth.go teams: better names for api permissions. 2019-03-19 14:01:20 +01:00
dashboard_redirect_test.go Chore: use remote cache instead of session storage (#16114) 2019-04-08 14:31:46 +03:00
dashboard_redirect.go Revert "Opportunities to unindent code (unindent)" 2018-05-02 14:06:46 +02:00
headers.go refactor datasource caching 2018-10-30 09:31:56 +01:00
logger.go rename Context to ReqContext 2018-03-07 11:54:50 -05:00
middleware_test.go Auth: consistently return same basic auth errors (#18310) 2019-08-02 11:16:31 +02:00
middleware.go Auth: consistently return same basic auth errors (#18310) 2019-08-02 11:16:31 +02:00
org_redirect_test.go Auth: Enable retries and transaction for some db calls for auth tokens (#16785) 2019-04-30 14:42:01 +02:00
org_redirect.go login users based on token cookie 2019-01-16 16:44:40 +01:00
perf.go rename Context to ReqContext 2018-03-07 11:54:50 -05:00
quota_test.go Auth: Enable retries and transaction for some db calls for auth tokens (#16785) 2019-04-30 14:42:01 +02:00
quota.go use authtoken for session quota restrictions 2019-02-12 15:10:55 +01:00
recovery_test.go Security: Responses from backend should not be cached (#16848) 2019-05-06 09:22:59 +02:00
recovery.go move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
render_auth.go Backend image rendering as plugin (#11966) 2018-05-24 15:26:27 +02:00
request_metrics.go Metrics: use consistent naming for exported variables (#18134) 2019-07-16 16:58:46 +02:00
request_tracing.go mark >=400 responses as error 2017-09-18 11:08:58 +02:00
util.go prometheus: enable gzip for /metrics endpoint 2017-10-23 09:35:46 +02:00
validate_host.go rename Context to ReqContext 2018-03-07 11:54:50 -05:00