Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CASAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ function casLogin($user) {
if ($returnto) {
$target = Title::newFromText($returnto);
if ($target) {
//action=purge is used to purge the cache
$wgOut->redirect($target->getFullUrl('action=purge'));
$wgOut->redirect($target->getFullUrl());
}
}
}
Expand Down Expand Up @@ -281,7 +280,8 @@ function casSetup() {
global $casIsSetUp;

// Make the session persistent so that phpCAS doesn't change the session id
wfSetupSession();
$session = MediaWiki\Session\SessionManager::getGlobalSession();
$session->persist();

require_once($CASAuth["phpCAS"]."/CAS.php");
phpCAS::client($CASAuth["Version"], $CASAuth["Server"], $CASAuth["Port"], $CASAuth["Url"], false);
Expand Down
2 changes: 2 additions & 0 deletions CASAuthSettings.php.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
# information.
#
# Default: $CASAuth["phpCAS"]="$IP/extensions/CASAuth/CAS";
# via composer: $CASAuth["phpCAS"]="$IP/vendor/jasig/phpcas";

$CASAuth["phpCAS"]="$IP/extensions/CASAuth/CAS";

# Location of the CAS authentication server. You must set this to the location
Expand Down