authelia/internal/middlewares
Amir Zarrinkafsh e8e5b8adbe
fix(web): adjust router basename behaviour (#7130)
This reverts commit a99bb63394 and is the proper fix for #5902. This change adjusts the behaviour if Authelia is run with a sub-path and is visited without a trailing slash on the specified sub-path. In 4.37.5 the base path would get normalized without a trailing slash, however, would cause issues when a refresh was completed while carrying a redirection query string. In 4.38.x this was changed so the sub-path would not be normalized without the trailing slash and that it was therefore necessary. This change in behaviour could be observed as a regression by users with learned behaviours.

Fixes #5902.

Signed-off-by: Amir Zarrinkafsh <nightah@me.com>
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
2024-04-15 13:12:52 +10:00
..
asset_override.go fix(server): i18n etags missing (#3973) 2022-09-16 11:19:16 +10:00
authelia_context.go fix(web): adjust router basename behaviour (#7130) 2024-04-15 13:12:52 +10:00
authelia_context_test.go feat(totp): reuse policy 2024-03-04 20:29:12 +11:00
bridge.go refactor(middlewares): convert the bridge to a builder (#3338) 2022-06-10 11:34:43 +10:00
const.go fix(web): adjust router basename behaviour (#7130) 2024-04-15 13:12:52 +10:00
cors.go docs: fix rfc references and fix misc issues (#4879) 2023-02-05 18:11:30 +11:00
cors_test.go refactor: http verbs etc (#5248) 2023-04-15 15:03:14 +10:00
delay.go feat(web): one-time codes for identity verification 2024-03-04 20:28:24 +11:00
delay_test.go refactor: apply suggestions from code review 2024-03-04 20:29:12 +11:00
errors.go feat(server): recover panics 2024-03-04 20:29:12 +11:00
headers.go fix(server): header inconsistencies (#6929) 2024-03-18 22:55:59 +11:00
http_to_authelia_handler_adaptor.go ci: remove container read-only mounts (#6709) 2024-02-19 13:56:40 +11:00
identity_verification.go refactor: config naming (#6852) 2024-03-14 21:20:32 +11:00
identity_verification_test.go refactor: apply suggestions from code review 2024-03-04 20:29:12 +11:00
log_request.go feat(server): recover panics 2024-03-04 20:29:12 +11:00
log_request_test.go fix(server): missing modern security headers (#3288) 2022-05-03 12:19:30 +10:00
metrics.go feat(metrics): record openid connect histogram (#5769) 2023-08-04 10:30:33 +10:00
password_policy.go docs: jsonschema (#5493) 2023-09-03 16:01:46 +10:00
password_policy_test.go ci: remove container read-only mounts (#6709) 2024-02-19 13:56:40 +11:00
require_auth.go refactor: apply suggestions from code review 2024-03-04 20:29:12 +11:00
require_auth_test.go refactor: config naming (#6852) 2024-03-14 21:20:32 +11:00
strip_path.go fix(web): adjust router basename behaviour (#7130) 2024-04-15 13:12:52 +10:00
timing_attack_delay.go refactor(random): add random provider (#4712) 2023-01-07 11:19:41 +11:00
timing_attack_delay_test.go refactor(random): add random provider (#4712) 2023-01-07 11:19:41 +11:00
types.go refactor(storage): migrations simplification 2024-03-04 20:29:11 +11:00
util.go feat(oidc): server issuer identification (#5912) 2023-08-30 21:44:41 +10:00
wrap.go feat(server): recover panics 2024-03-04 20:29:12 +11:00