Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UNL Information Services
NMC-PHP-Framework
Commits
2025a74a
Commit
2025a74a
authored
Sep 17, 2018
by
Roger W Feese
Browse files
Convert CAS urls to new UNL Shib CAS urls.
parent
3dee673a
Changes
2
Hide whitespace changes
Inline
Side-by-side
library/Unl/Controller/Action/Authenticate.php
View file @
2025a74a
...
...
@@ -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
}
library/Unl/Controller/Plugin/Auth/Cas.php
View file @
2025a74a
...
...
@@ -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
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment