Skip to content

Commit 912738e

Browse files
michael-osimo5
authored andcommitted
Write 'Persistent-Auth' header to err_headers_out
In some cases, like internal redirects, authentication is completed but our 'Persistent-Auth' header is dropped by the server because headers_out is ignored with errors (4xx, 5xx) and internal redirects. See: https://ci.apache.org/projects/httpd/trunk/doxygen/structrequest__rec.html#a9f49c2d5680987c0c28466ea37d41a62 This fixes #110 Reviewed-by: Simo Sorce <simo@redhat.com> Reviewed-by: Isaac Boukris <iboukris@gmail.com> Closes #111
1 parent 1e3ebb2 commit 912738e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mod_auth_gssapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ static int mag_auth(request_rec *req)
10491049
ret = mag_complete(req_cfg, mc, client, mech_type, vtime, delegated_cred);
10501050

10511051
if (ret == OK && req_cfg->send_persist)
1052-
apr_table_set(req->headers_out, "Persistent-Auth",
1052+
apr_table_set(req->err_headers_out, "Persistent-Auth",
10531053
cfg->gss_conn_ctx ? "true" : "false");
10541054

10551055
done:

0 commit comments

Comments
 (0)