From 40950a7b66ed2999494fdaeab3bddb5b58ad8268 Mon Sep 17 00:00:00 2001 From: "manu@netbsd.org" Date: Mon, 31 May 2010 11:15:49 +0000 Subject: Optionaly ave the remote IdP entityId in the environment git-svn-id: https://modmellon.googlecode.com/svn/trunk@84 a716ebb1-153a-0410-b759-cfb97c6a1b53 --- auth_mellon_handler.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'auth_mellon_handler.c') 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)) { -- cgit