summaryrefslogtreecommitdiffstats
path: root/auth_mellon_handler.c
diff options
context:
space:
mode:
authormanu@netbsd.org <manu@netbsd.org@a716ebb1-153a-0410-b759-cfb97c6a1b53>2010-05-31 11:15:49 +0000
committermanu@netbsd.org <manu@netbsd.org@a716ebb1-153a-0410-b759-cfb97c6a1b53>2010-05-31 11:15:49 +0000
commit40950a7b66ed2999494fdaeab3bddb5b58ad8268 (patch)
tree1005984e0d100626be5ea2983ccd47fcc4ec8e9f /auth_mellon_handler.c
parentd76a5fd0e1e22581edb9032dea710fb6cb191234 (diff)
downloadmod_auth_mellon-40950a7b66ed2999494fdaeab3bddb5b58ad8268.tar.gz
mod_auth_mellon-40950a7b66ed2999494fdaeab3bddb5b58ad8268.tar.xz
mod_auth_mellon-40950a7b66ed2999494fdaeab3bddb5b58ad8268.zip
Optionaly ave the remote IdP entityId in the environment
git-svn-id: https://modmellon.googlecode.com/svn/trunk@84 a716ebb1-153a-0410-b759-cfb97c6a1b53
Diffstat (limited to 'auth_mellon_handler.c')
-rw-r--r--auth_mellon_handler.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/auth_mellon_handler.c b/auth_mellon_handler.c
index bad41c2..57cecd9 100644
--- a/auth_mellon_handler.c
+++ b/auth_mellon_handler.c
@@ -1304,6 +1304,16 @@ static int add_attributes(am_cache_entry_t *session, request_rec *r,
return ret;
}
+ /* If requested, save the IdP ProviderId */
+ if (dir_cfg->idpattr != NULL) {
+ ret = am_cache_env_append(session, dir_cfg->idpattr, am_get_idp(r));
+ if(ret != OK) {
+ return ret;
+ }
+ }
+
+
+
/* assertions is a list of LassoSaml2Assertion objects. */
for(asrt_itr = g_list_first(assertions); asrt_itr != NULL;
asrt_itr = g_list_next(asrt_itr)) {