diff options
author | Michael Osipov <1983-01-06@gmx.net> | 2016-10-11 13:53:14 +0200 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2016-10-11 09:01:23 -0400 |
commit | 912738edbf248c9d9c2960cd4ff1daaa855e6c7e (patch) | |
tree | cf6be02bfff473486f3ab4c8a2112f4c2245de5c | |
parent | 1e3ebb21677943d7e79f77d31d21cfcdf51314f0 (diff) | |
download | mod_auth_gssapi-912738edbf248c9d9c2960cd4ff1daaa855e6c7e.tar.gz mod_auth_gssapi-912738edbf248c9d9c2960cd4ff1daaa855e6c7e.tar.xz mod_auth_gssapi-912738edbf248c9d9c2960cd4ff1daaa855e6c7e.zip |
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
-rw-r--r-- | src/mod_auth_gssapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_auth_gssapi.c b/src/mod_auth_gssapi.c index 1bd5ba7..9f24401 100644 --- a/src/mod_auth_gssapi.c +++ b/src/mod_auth_gssapi.c @@ -1049,7 +1049,7 @@ static int mag_auth(request_rec *req) ret = mag_complete(req_cfg, mc, client, mech_type, vtime, delegated_cred); if (ret == OK && req_cfg->send_persist) - apr_table_set(req->headers_out, "Persistent-Auth", + apr_table_set(req->err_headers_out, "Persistent-Auth", cfg->gss_conn_ctx ? "true" : "false"); done: |