From 2025a74aa676624c64f846d19849eec53814be44 Mon Sep 17 00:00:00 2001
From: Roger Feese <rfeese@unl.edu>
Date: Mon, 17 Sep 2018 14:50:19 -0500
Subject: [PATCH] Convert CAS urls to new UNL Shib CAS urls.

---
 library/Unl/Controller/Action/Authenticate.php | 4 ++--
 library/Unl/Controller/Plugin/Auth/Cas.php     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/library/Unl/Controller/Action/Authenticate.php b/library/Unl/Controller/Action/Authenticate.php
index 3679925..d2963f5 100644
--- a/library/Unl/Controller/Action/Authenticate.php
+++ b/library/Unl/Controller/Action/Authenticate.php
@@ -147,9 +147,9 @@ abstract class Unl_Controller_Action_Authenticate extends Unl_Controller_Action
                 $serviceUrl .= $_SERVER['SERVER_NAME'] . $path;
             }
 
-            $adapter = new Unl_Cas($serviceUrl, 'https://login.unl.edu/cas');
+            $adapter = new Unl_Cas($serviceUrl, 'https://shib.unl.edu/idp/profile/cas');
         }
         
         return $adapter;
     }
-}
\ No newline at end of file
+}
diff --git a/library/Unl/Controller/Plugin/Auth/Cas.php b/library/Unl/Controller/Plugin/Auth/Cas.php
index 808427d..a82cb42 100644
--- a/library/Unl/Controller/Plugin/Auth/Cas.php
+++ b/library/Unl/Controller/Plugin/Auth/Cas.php
@@ -81,7 +81,7 @@ class Unl_Controller_Plugin_Auth_Cas extends Zend_Controller_Plugin_Abstract
         }
         
         // Init the CAS Adapter.
-        $casAdapter = new Unl_Cas($serviceUrl, 'https://login.unl.edu/cas');
+        $casAdapter = new Unl_Cas($serviceUrl, 'https://shib.unl.edu/idp/profile/cas');
         
         // If either the user has no ticket, the ticket is expired, or a user isn't logged in, go ahead with transparent login.
         if ($casAdapter->isTicketExpired() || !Zend_Auth::getInstance()->hasIdentity()) {
@@ -96,4 +96,4 @@ class Unl_Controller_Plugin_Auth_Cas extends Zend_Controller_Plugin_Abstract
             exit;
         }
     }
-}
\ No newline at end of file
+}
-- 
GitLab