Skip to content

Commit 5ab1ce7

Browse files
committed
remove the Location header from HTML step up authentication redirects
as it may conflict with its HTTP 200 status code and confuse middle boxes Signed-off-by: Hans Zandbelt <[email protected]>
1 parent 1bfc6f5 commit 5ab1ce7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
03/18/2025
22
- use case insensitive hostname/domain comparison in oidc_check_cookie_domain
3+
- remove the Location header from HTML based step up authentication redirects
4+
as it may conflict with its HTTP 200 status code and confuse middle boxes
35
- bump to 2.4.16.9dev
46

57
02/17/2025

src/handle/authz.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ static authz_status oidc_authz_24_unauthorized_user(request_rec *r) {
528528

529529
if (location != NULL) {
530530
oidc_debug(r, "send HTML refresh with authorization redirect: %s", location);
531+
oidc_http_hdr_out_location_set(r, NULL);
531532
html_head = apr_psprintf(r->pool, "<meta http-equiv=\"refresh\" content=\"0; url=%s\">", location);
532533
oidc_util_html_send(r, "Stepup Authentication", html_head, NULL, NULL, HTTP_UNAUTHORIZED);
533534
r->header_only = 1;

0 commit comments

Comments
 (0)