Skip to content
Snippets Groups Projects
Commit 7635f059 authored by Brett Bieber's avatar Brett Bieber
Browse files

Merge branch 'master' into 'master'

Change from login.unl.edu to shib.unl.edu endpoint

See merge request !2
parents 1c9af593 c054a905
No related branches found
No related tags found
1 merge request!2Change from login.unl.edu to shib.unl.edu endpoint
[submodule "phpCAS"] [submodule "phpCAS"]
path = phpCAS path = phpCAS
url = https://github.com/Jasig/phpCAS.git url = https://github.com/Jasig/phpCAS.git
branch = 1.3-stable branch = master
...@@ -26,7 +26,7 @@ if (isset($_REQUEST['id'])) { ...@@ -26,7 +26,7 @@ if (isset($_REQUEST['id'])) {
} }
// initialize phpCAS // initialize phpCAS
phpCAS::client(CAS_VERSION_2_0, 'login.unl.edu', 443, '/cas'); phpCAS::client(CAS_VERSION_2_0, 'shib.unl.edu', 443, '/idp/profile/cas');
// no SSL validation for the CAS server // no SSL validation for the CAS server
phpCAS::setNoCasServerValidation(); phpCAS::setNoCasServerValidation();
...@@ -47,7 +47,7 @@ if ($auth) { ...@@ -47,7 +47,7 @@ if ($auth) {
// Get authenticated username // Get authenticated username
$username = phpCAS::getUser(); $username = phpCAS::getUser();
print file_get_contents("http://directory.unl.edu/service.php?format=json&uid=$username"); print file_get_contents("https://directory.unl.edu/service.php?format=json&uid=$username");
} else { } else {
print "{}"; print "{}";
} }
......
Subproject commit 661db83b40f11f010d13152d7df6ec4ac79c951b Subproject commit 7a949dee79aaadc16161d7d4863b5c0871546222
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment