Commit d033bb1a authored by Roger Feese's avatar Roger Feese
Browse files

Merge branch 'shib-cas' into 'master'

Convert CAS urls to new UNL Shib CAS urls.

See merge request !1
parents 3dee673a 2025a74a
...@@ -147,9 +147,9 @@ abstract class Unl_Controller_Action_Authenticate extends Unl_Controller_Action ...@@ -147,9 +147,9 @@ abstract class Unl_Controller_Action_Authenticate extends Unl_Controller_Action
$serviceUrl .= $_SERVER['SERVER_NAME'] . $path; $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; return $adapter;
} }
} }
\ No newline at end of file
...@@ -81,7 +81,7 @@ class Unl_Controller_Plugin_Auth_Cas extends Zend_Controller_Plugin_Abstract ...@@ -81,7 +81,7 @@ class Unl_Controller_Plugin_Auth_Cas extends Zend_Controller_Plugin_Abstract
} }
// Init the CAS Adapter. // 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 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()) { if ($casAdapter->isTicketExpired() || !Zend_Auth::getInstance()->hasIdentity()) {
...@@ -96,4 +96,4 @@ class Unl_Controller_Plugin_Auth_Cas extends Zend_Controller_Plugin_Abstract ...@@ -96,4 +96,4 @@ class Unl_Controller_Plugin_Auth_Cas extends Zend_Controller_Plugin_Abstract
exit; exit;
} }
} }
} }
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment