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 2008-01-10 13:13:52.000000000 +0100 @@ -285,6 +285,10 @@                        $shib_AssertionConsumerServiceURL. "/WAYF/". $shib_WAYF. '?target='. (isset($_SERVER['HTTPS']) ? 'https' : 'http'). '://' . $_SERVER['HTTP_HOST']. $pageurl, ); + +       // remove link to manual login (not very well tested) +        $personal_urls['login']=null; +        return true;             } /* Kill logout link */ @@ -301,7 +305,12 @@         if($shib_RN && $shib_map_info)                 $personal_urls['userpage']['text'] = $shib_RN; +        +        // remove link to manual login (not very well tested) +        $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 +337,30 @@         //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 +371,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 +426,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 +435,7 @@        $user->saveSettings; $user->setupSession; $user->setCookies; +       return true; } and it seems to work great now. Peterjacobs 15:18, 14 December 2007 (UTC)

"return true;" added in function SSOLinkAdd