diff options
Diffstat (limited to 'auth_mellon_handler.c')
-rw-r--r-- | auth_mellon_handler.c | 10 |
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)) { |