Extension talk:Shibboleth Authentication

= update for mediawiki 1.11 = i tried to run the plugin on an 1.11 wiki and had to change a few things: --- ShibAuthPlugin.php.orig    2007-12-14 15:59:31.000000000 +0100 +++ ShibAuthPlugin.php.mw1.11  2008-01-15 10:21:18.000000000 +0100 @@ -285,6 +285,11 @@                        $shib_AssertionConsumerServiceURL. "/WAYF/". $shib_WAYF. '?target='. (isset($_SERVER['HTTPS']) ? 'https' : 'http'). '://' . $_SERVER['HTTP_HOST']. $pageurl, ); + +       // added to hide the manual login (may not be necessary in your config) +        $personal_urls['login']=null; + +        return true;             } /* Kill logout link */ @@ -301,7 +306,13 @@         if($shib_RN && $shib_map_info)                 $personal_urls['userpage']['text'] = $shib_RN; +        +        // added to hide the manual login (may not be necessary in your config) +        $personal_urls['login']=null;+ +        return true; } + /* Tries to be magical about when to log in users and when not to. */ function AutoAuth(&$user) @@ -328,10 +339,12 @@         //They already with us?  If so, nix this function, we're good.         if($user->isLoggedIn)         { -                BringBackAA; -                return; +           BringBackAA; +           return true;         } - + + +         //Is the user already in the database?         if (User::idFromName($shib_UN) != null) { @@ -342,7 +355,7 @@                $shib_map_info = $smi; $user->SetupSession; $user->setCookies; -               return; +               return true; }        //Place the hook back (Not strictly necessarily MW Ver >= 1.9) @@ -397,7 +410,7 @@        //Now we _do_ the black magic $lf->mRemember = false; -       $lf->initUser($user); +       $lf->initUser($user,true); //Stop pretending now $shib_pretend = false; @@ -406,6 +419,7 @@        $user->saveSettings; $user->setupSession; $user->setCookies; +       return true; }

and it seems to work great now. Peterjacobs

"return true;" added in function SSOLinkAdd