From 3bfb7e2d88a15bfe39649a62e2c831e6ac691697 Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Tue, 16 Nov 2010 14:31:01 +0000
Subject: [PATCH] Auth_Simple: Retrieve attributes of current AuthSource.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2640 44740490-163a-0410-bde0-09ae8108e29a
---
 lib/SimpleSAML/Auth/Simple.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/SimpleSAML/Auth/Simple.php b/lib/SimpleSAML/Auth/Simple.php
index 0f5203572..c185e10a9 100644
--- a/lib/SimpleSAML/Auth/Simple.php
+++ b/lib/SimpleSAML/Auth/Simple.php
@@ -175,7 +175,7 @@ class SimpleSAML_Auth_Simple {
 
 		/* Authenticated. */
 		$session = SimpleSAML_Session::getInstance();
-		return $session->getAttributes();
+		return $session->getAuthData($this->authSource, 'Attributes');
 	}
 
 
-- 
GitLab