authelia/internal
James Elliott 26236f491e
fix(server): use of inconsistent methods for determining origin (#2848)
This unifies the methods to obtain the X-Forwarded-* header values and provides logical fallbacks. In addition, so we can ensure this functionality extends to the templated files we've converted the ServeTemplatedFile method into a function that operates as a middlewares.RequestHandler.

Fixes #2765
2022-02-07 00:37:28 +11:00
..
authentication refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
authorization fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
commands fix(ntp): disable failure ignored (#2835) 2022-02-03 14:04:24 +11:00
configuration refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
duo refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
handlers fix(server): use of inconsistent methods for determining origin (#2848) 2022-02-07 00:37:28 +11:00
logging refactor: remove ioutil (#2635) 2021-12-02 00:14:15 +11:00
middlewares fix(server): use of inconsistent methods for determining origin (#2848) 2022-02-07 00:37:28 +11:00
mocks refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
models fix(models): potential panic generating jti (#2669) 2021-12-04 15:48:22 +11:00
notification refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
ntp refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
oidc refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
regulation refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
server fix(server): use of inconsistent methods for determining origin (#2848) 2022-02-07 00:37:28 +11:00
session refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
storage refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
suites refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
templates fix(web): improve 2fa enrollment process (#1706) 2021-02-12 16:59:42 +11:00
totp feat(totp): algorithm and digits config (#2634) 2021-12-01 23:11:29 +11:00
utils refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00