diff options
author | manu@netbsd.org <manu@netbsd.org@a716ebb1-153a-0410-b759-cfb97c6a1b53> | 2009-06-01 20:43:17 +0000 |
---|---|---|
committer | manu@netbsd.org <manu@netbsd.org@a716ebb1-153a-0410-b759-cfb97c6a1b53> | 2009-06-01 20:43:17 +0000 |
commit | 168300298027322956ed3c50ddb56197111f58ef (patch) | |
tree | 38e42092654a65846e1e11de13f05bd91e65c568 /auth_mellon_config.c | |
parent | 4efd2ad895795b7a61d70da76e32fac5d319e2c1 (diff) | |
download | mod_auth_mellon-168300298027322956ed3c50ddb56197111f58ef.tar.gz mod_auth_mellon-168300298027322956ed3c50ddb56197111f58ef.tar.xz mod_auth_mellon-168300298027322956ed3c50ddb56197111f58ef.zip |
Add a MellonSamlResponseDump option to dump the SAML authentication response in
the environement
git-svn-id: https://modmellon.googlecode.com/svn/trunk@51 a716ebb1-153a-0410-b759-cfb97c6a1b53
Diffstat (limited to 'auth_mellon_config.c')
-rw-r--r-- | auth_mellon_config.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/auth_mellon_config.c b/auth_mellon_config.c index ec60328..bcb74ac 100644 --- a/auth_mellon_config.c +++ b/auth_mellon_config.c @@ -47,6 +47,10 @@ static const int default_secure_cookie = 0; */ static const int default_dump_session = 0; +/* The default setting for setting MELLON_SAML_RESPONSE + */ +static const int default_dump_saml_response = 0; + /* This is the default IdP initiated login location * the MellonDefaultLoginPath configuration directive if you change this. */ @@ -487,6 +491,13 @@ const command_rec auth_mellon_commands[] = { OR_AUTHCFG, "Dump session in environement. Default is off" ), + AP_INIT_FLAG( + "MellonSamlResponseDump", + ap_set_flag_slot, + (void *)APR_OFFSETOF(am_dir_cfg_rec, dump_saml_response), + OR_AUTHCFG, + "Dump SAML authentication response in environement. Default is off" + ), AP_INIT_RAW_ARGS( "MellonRequire", am_set_require_slot, @@ -612,6 +623,7 @@ void *auth_mellon_dir_config(apr_pool_t *p, char *d) dir->envattr = apr_hash_make(p); dir->userattr = default_user_attribute; dir->dump_session = default_dump_session; + dir->dump_saml_response = default_dump_saml_response; dir->endpoint_path = default_endpoint_path; @@ -694,6 +706,11 @@ void *auth_mellon_dir_merge(apr_pool_t *p, void *base, void *add) add_cfg->dump_session : base_cfg->dump_session); + new_cfg->dump_saml_response = + (add_cfg->dump_saml_response != default_dump_saml_response ? + add_cfg->dump_saml_response : + base_cfg->dump_saml_response); + new_cfg->endpoint_path = ( add_cfg->endpoint_path != default_endpoint_path ? add_cfg->endpoint_path : |