From 7427d00f1de325604eb60d40c27611b1ef926e6c Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Mon, 6 Dec 2010 08:16:54 +0000
Subject: [PATCH] saml:SP: Fix NameID and SessionIndex access from authproc
 filter on saml:sp.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2678 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/saml/lib/Auth/Source/SP.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/saml/lib/Auth/Source/SP.php b/modules/saml/lib/Auth/Source/SP.php
index bd56b465d..ce68b088e 100644
--- a/modules/saml/lib/Auth/Source/SP.php
+++ b/modules/saml/lib/Auth/Source/SP.php
@@ -420,6 +420,8 @@ class sspmod_saml_Auth_Source_SP extends SimpleSAML_Auth_Source {
 
 		$authProcState = array(
 			'saml:sp:IdP' => $idp,
+			'saml:sp:NameID' => $state['saml:sp:NameID'],
+			'saml:sp:SessionIndex' => $state['saml:sp:SessionIndex'],
 			'saml:sp:State' => $state,
 			'ReturnCall' => array('sspmod_saml_Auth_Source_SP', 'onProcessingCompleted'),
 
-- 
GitLab