From 630ef6aea1e8ab0318b7b7b36acef733e8299bbb Mon Sep 17 00:00:00 2001
From: Andy Summers <andrew.summers@wisc.edu>
Date: Tue, 22 Nov 2016 15:27:11 -0600
Subject: [PATCH] Chore: replace EPPN with email

---
 composer.json                                                 | 2 +-
 .../wisc/doit/uwphps/preauth/PreauthUserDetailsProvider.php   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/composer.json b/composer.json
index 9a7479c..d2b896d 100644
--- a/composer.json
+++ b/composer.json
@@ -4,7 +4,7 @@
   "type": "library",
   "homepage": "https://git.doit.wisc.edu/adi-ia/uw-php-security",
   "license": "Apache-2.0",
-  "version": "2.0.1",
+  "version": "2.0.2",
   "authors": [{
     "name": "UW-Madison DoIT ADI Integrated Applications",
     "email": "adi-ia@lists.wisc.edu",
diff --git a/src/main/edu/wisc/doit/uwphps/preauth/PreauthUserDetailsProvider.php b/src/main/edu/wisc/doit/uwphps/preauth/PreauthUserDetailsProvider.php
index 79631f2..80d36d9 100644
--- a/src/main/edu/wisc/doit/uwphps/preauth/PreauthUserDetailsProvider.php
+++ b/src/main/edu/wisc/doit/uwphps/preauth/PreauthUserDetailsProvider.php
@@ -40,7 +40,7 @@ class PreauthUserDetailsProvider extends UserDetailsProvider
                 getenv($this->mapAttribute(static::PVI)),
                 getenv($this->mapAttribute(static::FULL_NAME)),
                 explode(static::DELIMITER, getenv($this->mapAttribute(static::UDDS))),
-                getenv($this->mapAttribute(static::EPPN)),
+                getenv($this->mapAttribute(static::EMAIL)),
                 getenv($this->mapAttribute(static::SOURCE)),
                 getenv($this->mapAttribute(static::ISIS_EMPLID)),
                 getenv($this->mapAttribute(static::FIRST_NAME)),
@@ -52,7 +52,7 @@ class PreauthUserDetailsProvider extends UserDetailsProvider
                 getenv(static::PVI),
                 getenv(static::FULL_NAME),
                 getenv(static::UDDS),
-                getenv(static::EPPN),
+                getenv(static::EMAIL),
                 getenv(static::SOURCE),
                 getenv(static::ISIS_EMPLID),
                 getenv(static::FIRST_NAME),
-- 
GitLab