Skip to content

Commit

Permalink
avoid appending 401 HTML document text on step-up authentication
Browse files Browse the repository at this point in the history
- applies to Apache 2.4 HTML refresh with an authorization request
- closes #484
- bump to 2.4.5rc0

Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Sep 22, 2020
1 parent 198eea3 commit f5959d7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
09/22/2020
- avoid Apache 2.4 appending 401 HTML document text to step-up authentication HTML refresh page; closes #484
- bump to 2.4.5rc0

09/21/2020
- populate AUTH_TYPE when performing authentication; thanks @spanglerco

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([mod_auth_openidc],[2.4.4.1],[[email protected]])
AC_INIT([mod_auth_openidc],[2.4.5rc0],[[email protected]])

AC_SUBST(NAMEVER, AC_PACKAGE_TARNAME()-AC_PACKAGE_VERSION())

Expand Down
5 changes: 5 additions & 0 deletions src/mod_auth_openidc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4097,6 +4097,11 @@ static authz_status oidc_handle_unauthorized_user24(request_rec *r) {
location);
oidc_util_html_send(r, "Stepup Authentication", html_head, NULL, NULL,
HTTP_UNAUTHORIZED);
/*
* a hack for Apache 2.4 to prevent it from writing its own 401 HTML document
* text by making ap_send_error_response in http_protocol.c return early...
*/
r->header_only = 1;
}

return AUTHZ_DENIED;
Expand Down

0 comments on commit f5959d7

Please sign in to comment.