diff options
author | Simo Sorce <simo@redhat.com> | 2014-04-21 16:36:56 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-07-10 06:47:18 -0400 |
commit | 63dbb99337d0423253cb1ead0dcc3da54af5d13e (patch) | |
tree | 84bdcdb5f13f03dc41e0d19576eab248cf63d5cd /src/sessions.h | |
parent | 342cea568dc94ed0d35dca27a90fc704d0424da1 (diff) | |
download | mod_auth_gssapi-63dbb99337d0423253cb1ead0dcc3da54af5d13e.tar.gz mod_auth_gssapi-63dbb99337d0423253cb1ead0dcc3da54af5d13e.tar.xz mod_auth_gssapi-63dbb99337d0423253cb1ead0dcc3da54af5d13e.zip |
Add mod_session support
By setting GssapiUseSessions we enable the module to store a bearer
token with the user and gss names in the client, this way we can allow
clients to perform authentication once but then remain authenticaed
for the duration of the session or until the original credentials expire.
The Secure cookie used to store the token is encrypted using a randomly
generated AES key at process startup. This means multiple apache servers
will not be able to use the same cookie, however the client will reauth
transparently if the cookie cannot be read.
Diffstat (limited to 'src/sessions.h')
-rw-r--r-- | src/sessions.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sessions.h b/src/sessions.h new file mode 100644 index 0000000..f3b398e --- /dev/null +++ b/src/sessions.h @@ -0,0 +1,10 @@ +/* Copyright (C) 2014 mod_auth_gssapi authors - See COPYING for (C) terms */ + +struct mag_config; +struct mag_conn; + +void mag_post_config_session(void); +void mag_check_session(request_rec *req, + struct mag_config *cfg, struct mag_conn **conn); +void mag_attempt_session(request_rec *req, + struct mag_config *cfg, struct mag_conn *mc); |