58dbf96a12
Middleware: Rewrite tests to use standard library ( #29535 )
...
* middleware: Rewrite tests to use standard library
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-03 08:28:54 +01:00
1076f47509
Dashboard: Fixes kiosk state after being redirected to login page and back ( #29273 )
...
* Login: Fixes issue where url parameters where modified by golang url code
* Add tests
* Fix test cases
* Update pkg/middleware/auth_test.go
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
* fixed formatting
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
2020-11-20 19:30:37 +01:00
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
41d432b5ae
Chore: Enable whitespace linter ( #25903 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-07-06 20:17:28 +02:00
964c2e722f
Snapshot: Fix http api ( #18830 )
...
(cherry picked from commit be2e2330f5c1f92082841d7eb13c5583143963a4)
2019-09-02 15:15:46 +02:00
67cbc7d4cf
Chore: use remote cache instead of session storage ( #16114 )
...
Replaces session storage in auth_proxy middleware with remote cache
Fixes #15161
2019-04-08 14:31:46 +03:00
be589d81c7
Auth: Support for user authentication via reverse proxy header (like X-Authenticated-User, or X-WEBAUTH-USER), Closes #1921
2015-05-02 12:06:58 +02:00