grafana/pkg/middleware
Marcus Efraimsson 3be82ecd4e
Auth: Should redirect to login when anonymous enabled and URL with different org than anonymous specified (#28158)
If anonymous access is enabled for an org and there are multiple
orgs. When requesting a page that requires user to be logged in
and orgId query string is set in the request url to an org not
equal the anonymous org, if the user is not logged in should
be redirected to the login page.

Fixes #26120

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
2020-10-23 16:34:35 +02:00
..
auth_proxy Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
auth_proxy_test.go Auth proxy: Ignore stale cache entries (#23979) 2020-06-17 18:43:16 +02:00
auth_proxy.go Auth proxy: Ignore stale cache entries (#23979) 2020-06-17 18:43:16 +02:00
auth_test.go Auth: Should redirect to login when anonymous enabled and URL with different org than anonymous specified (#28158) 2020-10-23 16:34:35 +02:00
auth.go Auth: Should redirect to login when anonymous enabled and URL with different org than anonymous specified (#28158) 2020-10-23 16:34:35 +02:00
cookie.go Auth: Remove trailing / in cookies' path (#22265) (#22265) 2020-04-06 17:56:19 +03:00
dashboard_redirect_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
dashboard_redirect.go Dashboard: Redirects for old edit & view panel urls (#25653) 2020-06-17 12:51:41 +02:00
headers.go chore: avoid aliasing models in middleware (#22484) 2020-02-28 12:50:58 +01:00
logger.go chore: avoid aliasing models in middleware (#22484) 2020-02-28 12:50:58 +01:00
middleware_basic_auth_test.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
middleware_test.go Settings: Rename constants/variables to follow Go naming standards (#28002) 2020-10-02 15:45:45 +02:00
middleware.go Settings: Rename constants/variables to follow Go naming standards (#28002) 2020-10-02 15:45:45 +02:00
org_redirect_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
org_redirect.go Auth: Should redirect to login when anonymous enabled and URL with different org than anonymous specified (#28158) 2020-10-23 16:34:35 +02:00
perf.go chore: avoid aliasing models in middleware (#22484) 2020-02-28 12:50:58 +01:00
quota_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
quota.go chore: avoid aliasing models in middleware (#22484) 2020-02-28 12:50:58 +01:00
recovery_test.go Settings: Rename constants/variables to follow Go naming standards (#28002) 2020-10-02 15:45:45 +02:00
recovery.go Settings: Rename constants/variables to follow Go naming standards (#28002) 2020-10-02 15:45:45 +02:00
render_auth.go chore: avoid aliasing models in middleware (#22484) 2020-02-28 12:50:58 +01:00
request_metrics.go Instrumentation: Add histogram for request duration (#28364) 2020-10-20 09:44:38 +02:00
request_tracing.go mark >=400 responses as error 2017-09-18 11:08:58 +02:00
testing.go Auth: Do not search for the user twice (#18366) 2019-08-03 21:50:05 +02:00
util.go Backend Plugins: Support handling of streaming resource response (#22580) 2020-03-06 01:44:07 +07:00
validate_host.go chore: avoid aliasing models in middleware (#22484) 2020-02-28 12:50:58 +01:00